2

Is there any way to instantly change all the PNG images in a D7 site to JPEG (with or without backup creating)? By all PNG images I mean to those uploaded via image-field as well as those uploaded via CKeditor.

Going through page after page and changing them manually would take much time, therefore I'm looking for a more automatic way.

Thanks for your advice.

2
  • The simplest way would be to set up a CLI script to convert them using imagemagick. If you need help with CLI scripting, try StackOverflow. – Free Radical Jun 7 '15 at 8:57
  • Drupal Core ImageCache can process images on the fly. There are lots of contrib modules available for it as well. – J. Reynolds Jun 7 '15 at 13:49
4

With imagecache_actions module you have several actions. One of then is "File Format switcher" so you can serve JPEG instead of png without converting the source images.

For more information: https://www.drupal.org/project/imagecache_actions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy