Closed sascha-egerer closed 2 years ago
Hi Sascha, thanks for the PR!
I'm not really sure about it in this form. Given your original image would not be optimized you have a copy of your original in fileadmin/_processed/
I would not merge it in this form...
I‘ll push an update next week
Let's discuss the aim first ;-)
Given your original image would not be optimized you have a copy of your original in fileadmin/_processed/
As far as I can see the file is only updated when the optimized version sha1 differs from the original. So there won't be copies of the original if the optimizer had not actually optimized something.
@helhum If i remember it correctly....When i checked it the processing attempt was done again for every request... We later discussed at slack, but if you want you can take a deeper look at it and we will get it merged
Yeah. I think this needs extensive testing for the different scenarios. Looks like indeed the processing could happen multiple times, only the file copy isn't.
Images have only been compressed if they where processed before. That means if an image for example has not being resized it got also not compressed. This is now changed so every image gets compressed.