TimThumb resizing - server processing usage question...

resolved (8 posts) (2 voices)

  1. Strategerizer
    Member

    Do you know how using the fancy_images and image_frames shortcodes is impacting server processing? Are images being scaled *every* time a visitors hits the page? I have the super cache plugin and I still see the hourglass animation that appears as each image slowly displays on screen. So I wonder how much of a server hit it is to use those type of images. It is so nice to use the automatic scaling/croping of TimThumb but if it impacts server processing and the resized images cannot somehow be cached, I'll have to use those shortcodes more sparingly.

    Please advise...

    Posted 7 months ago #
  2. Elliott
    Support

    Hello Strategerizer,

    The images are resized the first time they are viewed and then they are referenced in your /theme/cache/ folder. The loading icon is from our preloader, you can take it off if you need but there is no performance hit.

    Posted 7 months ago #
  3. Strategerizer
    Member

    So the delay in display is hard-wired by the preloader? Is the preloader there to show progress, particularly useful for the first time if server takes longer to display but not really needed if images can be displayed from cache? If I take out the preloader then the images will display faster directly from the cache (meaning that the way the preloader is implemented it actaully may introduce a hard-wired delay that may not be needed?)

    Thanks for the clarification.

    Posted 7 months ago #
  4. Elliott
    Support

    Yes, your using the fancy_images right? Open up /wp-content/themes/[your_theme]/lib/shortcodes/18-images.php and switch line 109 from this,

    'preload' => true

    To this,

    'preload' => false

    And do the same for line 148.

    Posted 7 months ago #
  5. Strategerizer
    Member

    Works great! Do you know why is this not the default behavior? Just want to make sure I am not missing some advantages of using the preloader.

    Thanks!

    Posted 7 months ago #
  6. Strategerizer
    Member

    And is the preloader using server resources or simply displaying the animation until the cached image gets displayed?

    Posted 7 months ago #
  7. Elliott
    Support

    It loads the images with javascript so the page loads faster and the images display as they are downloaded in sequence. There is no performance hit it's mainly just a style thing.

    Posted 7 months ago #
  8. Strategerizer
    Member

    Thanks for the explanation; I see the value now. Nice touch... so I'll revert to how it was originally designed to work!

    Posted 7 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme