Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1211612

    I’m praying this isn’t a total “dummy” question… I searched for an answer in the forum, but didn’t find one. Either this is FAR too simple & everyone but me knows or it is something that people take for granted.

    Does the Enfold theme actually resize the image that it puts into a post or page?

    I’m trying everything I can to minimize page load times and lighten I/O. Images seem to be a big thing (as expected). If I, for example, upload a 2,048 x 2,048 original image, but then tell Enfold that it is a 640 x 640 image on the post, is it being resized (and served as a smaller file size)? Or am I just defining the “window” in which Enfold displays that big file?

    I’ve run image optimization on the library, but it doesn’t seem to change the original image size (in pixels).

    Any thoughts or suggestions from my more experienced fellow Enfold users?

    #1211665

    Hey amz,

    Enfold and WordPress generate image sizes on image upload.

    You can have a look at this file:

    Best regards,
    Victoria

    #1211676

    I’m trying everything I can to minimize page load times and lighten I/O. Images seem to be a big thing (as expected). If I, for example, upload a 2,048 x 2,048 original image, but then tell Enfold that it is a 640 x 640 image on the post, is it being resized (and served as a smaller file size)? Or am I just defining the “window” in which Enfold displays that big file?

    these images are resized and should be less file size. BUT:

    on functions-enfold.php:

    if( ! function_exists( 'av_return_100' ) )
    {
    	/**
    	* Sets the default image to 100% quality for more beautiful images when used in conjunction with img optimization plugins
    	*
    	* @since 4.3
    	* @added_by Kriesi
    	*/
    	function av_return_100(){ return 100; }
    	add_filter('jpeg_quality', 'av_return_100');
    	add_filter('wp_editor_set_quality', 'av_return_100');
    }

    Enfold takes the original image on upload, unpacks it and calculates new smaller sizes, but without compression level!
    That is f.e. like you save a jpg on photoshop without compressing on quality level 10 !

    This is meant very nicely, but leads to the fact that optimized jpgs uploaded in their original size sometimes have a smaller file size than the recalculated files which are smaller in dimension.

    This is not necessarily the case for a 640px image, but for the sizes : “featured”, “featured_large” and “extra_large” this is often the rule.

    This little snippet in child-theme functions.php :

      function av_return_100(){ return 65; }
      add_filter('jpeg_quality', 'av_return_100');
      add_filter('wp_editor_set_quality', 'av_return_100');

    65% seems to be a good compromise – but this depends of course on your pictures and your requirements for sharpness.

    This small snippet reduces the quality of the recalculated images during upload.
    but unfortunately it has no effect afterwards.
    Therefore you would have to recalculate the thumbnails. There are several plugins you can use for this.
    Regenerate thumbnails etc.

    #1211711

    Thank you, both!


    @Guenni007
    do you know if the “un-optimization” is a one-time thing or on every serving of the image? If I ran the account images through something like a WP-Optimize plugin AFTER upload (which sends it out to reSmush.it), will they stay optimized or will Enfold try to re-un-optimize them?

    #1211768

    The enfold calculation of the new size formats will be done on upload.
    Those Optimising Plugins will edit these existing images. So for enfold there will be no difference if they find the same nomenklatur for them.

    I suppose that once you have run through such an optimizer the images will stay that way even after deactivating or deleting the plugin.
    Isn’t there a free contingent of them, which can be processed? I would test that first.

    _______________

    The snippet above will take effect immediately on upload. The images that are already there I have recalculated with Force Regenerate Thumbnails.
    The benefit of that plugin is that it deletes the old thumnails not needed ( f.e. if you change the theme – there will be other sizes and some sizes are not needed – or if you follow the link of Victoria that you exclude some sizes from being calculated. )

    See here https://kriesi.at/support/topic/disable-creation-of-multiple-file-resoltuions-on-media-upload/#post-1172543

    You can influence what sizes are calculated on upload.

    Sometimes you notice that some image sizes are not needed at all for an Enfold installation, and in some cases you can even work with other formats. Then you could save yourself the trouble of generating these file sizes.

    ___________

    Have a look at that plugin too – seems to be a very usefull one:
    https://de.wordpress.org/plugins/simple-image-sizes/

    • This reply was modified 4 years, 6 months ago by Guenni007.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.