Forum

Thread tagged as: Question, Problem, Add-on-development

Reprocess all images after adding width and height params

I have a client with a few hundred images. The thumbnails have been resized to 50x50 since day 1, but the detail pages are loading in full images, which is getting a bit out of hand (some of these are 17mb).

I went in and updated our perch code on the detail pages to the following:

<img class="img-responsive" id="realimg" src="<perch:content type="image" id="image" label="Image"/>" alt="<perch:content id="heading" title="true" type="text" label="Title" width="460" height="460" />"  />

Unfortunately, it looks like we may have to re-upload each image in order to process them and get them contained to the new width x height.

Hoping that somebody on here has a workaround to reprocess all images.

Thanks for your time and consideration. All thoughts are appreciated.

Best, Tommy

Tommy Biglow

Tommy Biglow 0 points

  • 2 years ago
Simon Clay

Simon Clay 127 points

Hi Tommy, simply saving the region again should generate the new image sizes, rather than having to re-upload.

Thanks for the reply, Simon. Saving the region again didn't do it for me. Still loading up the original sized, very large images. Strange huh?

EDIT: I'm a dingus. I had accidentally placed the width x height code on the alt tag rather than the image source :P

Working now, looks like I'll just have to go through and click save on each image. Better than having to re-upload each one!

Best, T