R
R
Rokis2015-12-14 17:19:19
Images
Rokis, 2015-12-14 17:19:19

How to properly distribute image copy creation in Wordpress?

I decided to specifically optimize the upload folder . I set the creation of thumbnails in the settings for the site, removed the rest. In the post I use 1 thumbnail. For each picture, an original + thumbnail is created . What methods ( other than manual ones ) can automate the process of creating the necessary images on the go ? For example, for pictures in a post, I don’t need thumbnails at all, and when I upload a thumbnail, I don’t need its original. I don't think I'm the only one with this problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WP Panda, 2015-12-16
@Rokis

in the settings we completely remove the creation of thumbnails, to display the right sizes in the right place, use
https://github.com/bfintal/bfi_thumb

M
Maxim, 2015-12-16
@maxus99

The link https://github.com/bfintal/bfi_thumb has a link to https://github.com/gambitph/WP-OTF-Regenerate-Thum... and the authors recommend this particular plugin.
It allows you to generate thumbnails on the fly.
I don't remember exactly, but there are 2 options:
First - it will generate thumbnails of the right size even without the "add_image_size" declaration.
Then everything is simple - we remove all add_image_size and everything is generated on the fly.
1. Disable all add_image_size declarations if possible
2. Take the code https://github.com/gambitph/WP-OTF-Regenerate-Thum... remove the excess and make a generation function on the fly
This is exactly what I did for my plugin.
More precisely, at first I used https://github.com/bfintal/bfi_thumb , but it has tricky bugs, so I rewrote the WP-OTF-Regenerate-Thumbnails code for myself and everything works smoothly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question