How to manage growing image library and file size on disk?

Posted in: Newsmag
Post count: 80

Greetings,

We have been using Newsmag for almost a full year. Great theme! Seeing 20k visitors and 44k pageviews a month.

Quick question, our /upload folder has grown in size considerably. Are there any suggestions on how to manage the large image library that we have accumulated? @neotrope (Chris S) ?

We have 510 posts and 42 pages. http://bit.ly/1AOikBD

Our image library has 4,602 items in it.

The theme makes about 18 copies of each image for use in the theme and different display ports, but this has really added up to a problem on disk. Our install is currently at almost 10gb on disk.

Does anyone have any suggestions on how to curb this beast?

Can we turn off some of the display sizes the theme uses or creates? How can we go back and delete only certain sizes?

Thank you.

Post count: 6535

Hi

You can try to keep the number of the thumb types used on the site as low as possible then deactivate the thumbs which are not used from theme panel > block settings: http://screencast.com/t/f33XshooOx In order to keep the thumbs type number low you have to use the same blocks and modules for every page. For example you can chose 2-3 blocks and use them on every page. Like this you will need only the thumbs used for those blocks, not all available thumbs. Also for post displayed by the loop.php file, like those from category page, archive page or latest article part you can use a module already used by the blocks from your pages.
A practical example will look like this:
– if i build a page with page-builder + latest as page template, and also i use block 1 on that page, the number of thumbs types used will be equal with 1. For every post the theme will use module 1 which have a thumb by 300x160px: http://screencast.com/t/XJRUBrkcNhttp://screencast.com/t/dQ4Io1kXg
This is just a basic example pointing the way in which you can reduce the thumbs types used on the page. You can combine 3-4 or more blocks which have at least one commune module. You can check which module it’s used for a specific block here: http://screencast.com/t/m2AWJrkM Make sure that you deactivate all unused thumbs from theme panel then regenerate your thumbnails using the Force Regenerate Thumbnails plugin. The plugin will delete all the images corresponding for the thumbs which are deactivated from theme panel.

This can be a tricky task but it’s the only way to reduce the size of uploads folder.
Hope this help.
Thanks!

Post count: 80

That was very helpful. Thank you.

Is there a handy guide, FAQ or doc that has image sizes used for each module? I see that this info is in the theme panel next to each on/off switch. Good idea!

That would save me from having to go through each page with inspect element.

Also, is there a way to get the image creation for the modules to only apply to the featured image? Since that is what is displayed? All images uploaded to the image library appear to be resized for all module viewports.

Post count: 23312

Hello Breakwater,

Please provide more details about your problem because I do not understand very well what you mean. I need to know more details so I will be able to provide a more accurate response.

Thank you for the message!

Post count: 9544

Hi,
just some input … what we do is upload images via FTP we don’t want multi-cloned; like logos, or branding, or “about us” stuff, avatar images, etc.

For posts, one way we cut down on multiple image creation is this

a) upload featured image via post panel; then select as featured image
b) additional images on post, we load via html, from FTP versions, so only ONE file exists.
c) for optimizations, we did the most common tricks
— 1) set the default WP sm/med/lg sizes to the 3 sizes we most commonly use, and set largest size to the larger block image on front page, sometimes larger than our post image (640×480)
— 2) turn “off” image sizes we are not using from theme panel, limit sizes used on sidebar to same module sizes used for smaller home page sections
— set all category, archive, 404, author, search templates to use same size images
d) normal WP image compression optimizations, as in our case we pre-optimize uploaded files, and we set the default compression for ImageMagick/GDlib used by WP to 55 or 60 vs default 90.

This helped control the sizes.

On one old site, where images had not been compressed well, and/or could not all be “regenerated” we downloaded the image folder via FTP, then applied a local application to optimize all the images then uploaded the optimized image folder back to server.

Hope some of that helped, or perhaps food for thought 🙂

Post count: 15

Hi everyone, I’m having a same problem here. Have you tested DNUI (DELETE NOT USED IMAGE) PRO -plugin to solve this? https://apps.nicearma.com/product/dnui-delete-not-used-image-pro/

– P

  • This reply was modified 9 years by bandmill.
Post count: 23312

Hello bandmill,

If you want to turn off some thumbnails which you will not use, you should use then the Force Regenerate Plugin and this will remove the old unused images which the thumbs you have turned off, have used them.

Thanks for your message!

Post count: 15

Okay thanx! I might just try that. I just think it’s quite weird how WordPress and apparently Newspaper theme creates like 12 different images when I upload only one.

Post count: 9544

It’s not weird — if you want all those little thumbs in modules, the thumbs have to be created somehow — not my elfin magic 😉

This is why there is option in theme panel to turn on/off the thumbs you don’t actually need. So if using module x, y and z — just turn on those ‘sizes’ and turn the rest off.

Post count: 15

Hi Chris, yeah I understand. 🙂 I will try the Force Regenerate Plugin also, but with a backup before 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newsmag’ is closed to new topics and replies.