Support » Fixing WordPress » Image file extensions- Slideshowpro and WordPress

  • Resolved Phil Johnston


    I have been using the code found here:
    to make my slideshowpro work with wordpress. However, when I upload an image with the extension JPG instead of jpg, the thumbnails don’t work because the str_replace only replaces the “.jpg” with “.thumbnail.jpg” but NOT “.JPG”
    Is there a way to make wordpress change the extension from JPG to jpg on upload?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Phil Johnston



    Phil Johnston


    figured another way around it
    In the post_gallery file where the str_replace occurs, replace:
    <?php echo str_replace(“.jpg”, “.thumbnail.jpg”, $image->guid); ?>
    <?php $albumthumb=str_replace(“.jpg”, “.thumbnail.jpg”, $image->guid)?><?php echo str_replace(“.JPG”, “.thumbnail.JPG”, $albumthumb)?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image file extensions- Slideshowpro and WordPress’ is closed to new replies.