5.7 - Thumbnail creation on upload vs on use
Permalink
Hi
In 5.6 it was very easy to create thumbnails in any block on the fly.
If I understand it correctly this is in 5.7 deprecated and will soon be removed. Instead we have to make file versions when uploading a file.
Seems like a step back to me, and much more cumbersome. Instead of creating only the sizes we need at a particular point every file gets every version created, regardless if we need it or not. This forces us on larger sites to limit the different image sizes we use. Could anyone shed some light on why this is supposed to be better?
EDIT: Alright, I found this site:https://www.concrete5.org/documentation/developers/5.7/working-with-...
Explaining a lot about the process. However, I feel like someone tries to sell me a step back as a feature.
Before: I could just set this code in my blocks, didn't have to worry about a thing. Sure, once on creation it was a bit slower, but who cares about that. Other than that I had full control and easy mode.
Now: Did I rescan the images already? Oh, I need to create first a new type before using it. Adding a block to another project: Do I need to create some thumbnail versions first? How many versions do I have already, oh way to many. Crap, which one was for this again? What was the handle?
Not to mention that I have now a ton of images using space even though their file version is never used.
Blows, big time :(
In 5.6 it was very easy to create thumbnails in any block on the fly.
.... $ih->getThumbnail($file, $width, $height, $crop);
If I understand it correctly this is in 5.7 deprecated and will soon be removed. Instead we have to make file versions when uploading a file.
Seems like a step back to me, and much more cumbersome. Instead of creating only the sizes we need at a particular point every file gets every version created, regardless if we need it or not. This forces us on larger sites to limit the different image sizes we use. Could anyone shed some light on why this is supposed to be better?
EDIT: Alright, I found this site:https://www.concrete5.org/documentation/developers/5.7/working-with-...
Explaining a lot about the process. However, I feel like someone tries to sell me a step back as a feature.
Before: I could just set this code in my blocks, didn't have to worry about a thing. Sure, once on creation it was a bit slower, but who cares about that. Other than that I had full control and easy mode.
Now: Did I rescan the images already? Oh, I need to create first a new type before using it. Adding a block to another project: Do I need to create some thumbnail versions first? How many versions do I have already, oh way to many. Crap, which one was for this again? What was the handle?
Not to mention that I have now a ton of images using space even though their file version is never used.
Blows, big time :(
The Image Helper is not deprecated.
"Move helper/image out of legacy namespace #1618"
https://github.com/concrete5/concrete5/issues/1618...