WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Image Resizer
[resolved] Problems with four letter file extensions? (2 posts)

  1. sliceofpie
    Member
    Posted 2 years ago #

    This plugin is amazingly helpful!

    I'm noticing that images with extension ".jpeg" are not being automatically resized (but when renamed to ".jpg" and re-uploaded they work fine)... I am trying to get a ton of old images to work with this plugin, and this is the final bump in the road - Any thoughts on how to do this without doing some insane find and replace in the database and filenames? Thanks

    http://wordpress.org/extend/plugins/dynamic-image-resizer/

  2. sliceofpie
    Member
    Posted 2 years ago #

    Perhaps its not 4 letter extensions that are the issue after all - I was able to fix this issue by simply adding "jpeg|" to line 18:

    if (preg_match('/(.*)-([0-9]+)x([0-9]+)(c)?\.(jpeg|jpg|png|gif)/i',$_SERVER['REQUEST_URI'],$matches)) {

    Not sure if this is the best solution but fixed my specific problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.