Bulk update New Image Size in Existing Posts after Resize?

Ricky1990

New member
Feb 15, 2019
13
6
3
My site is Woocommerce and i've uploaded the hundreds big images which inserted in products description. Now I used a plugin to resize all images in bulk to 1200px maximum. But I encountered a problem as follows:

For example, i have an image (before resizing) with resolution 1920x1080 pixels. I inserted it in the product description. It looks like this:

<img src="abc.jpg" width="1920" height="1080" />

After resizing, my new image has a resolution of 1200x675 pixels. And my product description content remains the same.

How to update the width and height to the correct resolution of the images after resizing?

The content that I want is like this

<img src="abc.jpg" width="1200" height="675" />

I have hundreds of products and images with different resolutions. Do you have any suggestions to help me solve this problem?
I sincerely thank!
 

Latest posts

Forum statistics

Threads
66,797
Messages
892,818
Members
217,026
Latest member
gximh1

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu