WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Image file extensions- Slideshowpro and WordPress

[Resolved] Image file extensions- Slideshowpro and WordPress

  • Phil Johnston
    Participant

    @johnstonphilip

    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?

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

    @johnstonphilip

    bump?

    Phil Johnston
    Participant

    @johnstonphilip

    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)?>

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