Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » How do you select quality of thumbnails?

  • Resolved demolishun

    (@demolishun)


    Hello,
    I am very happy with your NextGen Gallery plugin for WordPress. I do have one thing I would like to be able to control though. It looks like the thumbnails are generated at 100% quality regardless of the image quality settings. I set all my images to 80% as I can see no visible difference when viewing 100% and 80%. It also helps with my Google Speed Insights test. It makes my website much quicker to load.

    When I use the NextGen Gallery to create thumbnails at the default small size each image is 100% quality. This causes each image to be 40K bytes larger than they would need to be. The Google Speed Insights likes to complain loudly about this. 😉 I would like to request a feature be added to be able to explicitly set the image quality of thumbnails. Or if possible to have it set the image quality of the thumbnail to match the original image quality of the image added to the gallery. I make sure all my images are 80% using an image editor before uploading. I saved over 500K bytes per image doing this. I would like the same sort of optimization for the NextGen Gallery thumbnails.

    Thank you for making this plugin!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Imagely

    (@imagely)

    @demolishun – Have a look at the following line in our code:

    ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/package.module.nextgen_basic_gallery.php:109

    We removed the option that allows that to be changed due to the complaints of poor quality when set below the current default of 100.

    Thanks!

    – Cais.

    Thread Starter demolishun

    (@demolishun)

    Thanks for getting back to me. I went in an changed that value to ’80’ from ‘100’. Then I had the gallery I was working with regenerate thumbnails bulk action with the images selected. It did some work. Then I checked the thumbnails on the server and they were still 100% quality and the same original size. I also deleted the thumbnails and told it to generate them again. Still the same result and same size of file as before. I did do a manual check of the quality in Gimp, but exporting with 80% quality just to make sure. The file went from 44K to 15K when I did that. Anyway, I don’t have a whole lot of images. I could just manually generate the new thumbnails using Gimp.

    Am I missing some library on my server maybe?

    Plugin Author Imagely

    (@imagely)

    @demolishun – The line reference is for the initialization of the value to 100% … trace the thumbnail_quality through the plugin code to locate any and all other references although also keep in mind we removed this due to user feedback and we do not recommend modifying our plugin code base as it is not update safe and will be over-written with each update.

    Thanks!

    – Cais.

    ingvarr25

    (@ingvarr25)

    You can change the value of the thumbnail quality (thumbquality) in the database. Table wp_options, option_name: ‘ngg_options’
    SELECT * FROM wp_options WHERE option_name LIKE 'ngg_options'
    This is better than editing the plugin.

    Plugin Author Imagely

    (@imagely)

    @ingvarr25 – Thanks for sharing your work-around.

    – Cais.

    Hi I’m having the same issue with thumb nails – it’s killing my site speed. I’m looking in my data base but I only have _ngg_album , _ngg_gallery , _ngg_imagify_data and _ngg_pictures.

    I’ve explored these but can’t see anywhere obvious to amend the quality of thumb nails, could you help, thanks. Tom

    You must search in table ‘wp_options’

    Hi thanks,

    I’ve managed to find the correct section and have changed the code below from 100 to 80 is this correct?

    “thumbquality”;i:80;s:8:”

    I’ve saved this and re run my google console audits and delevopers test https://developers.google.com/speed/pagespeed/insights/ and all thumbnails are still be flagged as the same size and in need of optimization.

    Any ideas? Thanks again for you help – Tom

    Plugin Author Imagely

    (@imagely)

    @tomk1982 – Please start your own topic so we can try to help you with your specific issue on your specific site.

    See https://make.wordpress.org/support/handbook/forum-welcome/#post-in-the-best-place

    Thanks!

    – Cais.

    Hi guys, I’ve posted a detailed question here, if anyone could help that would be great
    https://wordpress.org/support/topic/optimizing-nextgen-gallery-thumbnails/

    Plugin Author Imagely

    (@imagely)

    @tomk1982 – I have replied to that topic. Thanks for creating a new one for your question(s).

    – Cais.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How do you select quality of thumbnails?’ is closed to new replies.