GD to ImageMagick migration issue

Created on 27 July 2016, over 8 years ago
Updated 20 January 2025, 17 days ago

After running our site for close to 1 year using the GD toolkit, I decided to move to ImageMagick today. We use it to generate smaller images (320px wide) for mobiles. The desktop versions are 700px-wide and were uploaded using GD.

The problem is, some of these new 320px-wide images have a very high filesize compared to the original 700px-wide images.. I've uploaded 2 images here to illustrate the problem.

banana.jpg - 700 x 577 - 20 KB
mobile-banana.jpg - 320 x 264 - 577 KB

This means we're sending significantly heavier images to mobiles... and we don't want to do this.

Note: If we delete the original GD-uploaded images and upload them via ImageMagick and then generate the mobile version, everything works perfect (i.e., the mobile banana is a much much smaller file).

Therefore, this appears to be some sort of interop issue between GD and ImageMagick. We have thousands of images uploaded via GD, and re-uploading all of them manually now is impossible.

Can someone help me out here? What can I do to make sure that the new mobile versions are at least of the same size as the old ones? Please! This is driving me crazy!

💬 Support request
Status

Closed: outdated

Version

1.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024