verbb / image-resizer

A Craft CMS plugin to resize images on upload.
MIT License
128 stars 14 forks source link

'originals' folders don't get created on upload #31

Closed pierrestoffe closed 6 years ago

pierrestoffe commented 6 years ago

I noticed that the originals folder is not created at the time an image is uploaded, even though I have the Non-destructive setting enabled. I only see it being creating when bulk-resizing images... but that's of course too late since the original file is gone at that point.

pierrestoffe commented 6 years ago

From what I understand, it is caused by the $path variable in the resize function that matches the runtime temp folder when the image is uploaded, while it matches the assets source folder when the bulk-resizing task is running.

svenjungnickel commented 6 years ago

Hey @pierrestoffe . Thanks for the issue. This is now fixed in the latest Craft2 branch