WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image file extensions- Slideshowpro and WordPress (3 posts)

  1. johnstonphilip
    Member
    Posted 7 years ago #

    I have been using the code found here:
    http://theundersigned.net/2006/09/slideshowpro-and-wordpress/
    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?

  2. johnstonphilip
    Member
    Posted 7 years ago #

    bump?

  3. johnstonphilip
    Member
    Posted 7 years ago #

    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); ?>
    --------------------------
    with:
    <?php $albumthumb=str_replace(".jpg", ".thumbnail.jpg", $image->guid)?><?php echo str_replace(".JPG", ".thumbnail.JPG", $albumthumb)?>

Topic Closed

This topic has been closed to new replies.

About this Topic