Comments (5)
So I think the reason this happens is that under the hood, Craft probably does something like deleting the assets from one Asset Volume, and moving them to the other. Given that asset transforms sit in a folder in the same sub-folder as the asset, all of the transforms and their parents folders would need to be moved when an Asset is moved.
The real "bug" here I think would be for P&T, where we might want it to (maybe?) move any generated transforms when an Asset is moved, rather than just expecting them to be recreated (which is what it sounds like is happening).
This is without looking into it in depth, just what I think is likely happening.
from craft-imageoptimize.
Yeah I haven't looked into what was really happening either, though I don't think P&T are recreating the assets as the IDs are kept exactly the same, only a folderPath
column gets changed in the database. But maybe the events that are being triggered are the same as deleting/adding
from craft-imageoptimize.
What's happening is that when you move a bunch of images, the transforms all get nuked, and then ImageOptimize goes to recreate them... but it does it immediately, so it can take some time to do if there are a bunch of them.
I'll see if there is a way to shuffle it off into a queue in this instance.
from craft-imageoptimize.
This should be addressed in 1.4.23:
https://github.com/nystudio107/craft-imageoptimize/releases/tag/1.4.23
from craft-imageoptimize.
Great, that fixed it!
from craft-imageoptimize.
Related Issues (20)
- When is a queue job triggered, and how can trigger queue jobs without server access? (Craft 3 -> Craft 4 context) HOT 3
- Allow 0 variants on OptimizedImages field HOT 2
- Expectations around CPU/Memory usage with serverless HOT 10
- No new Variants are generated after replacing a file
- Support for Craft letterbox image transform mode HOT 1
- Plugin configured to use Imgix, still spins up jobs "Optimizing image id XXXX" HOT 10
- Custom event listener for EVENT_DEFINE_URL & EVENT_DEFINE_THUMB_URL
- Imgix - folder (or filenames) with umlaut / special chars result in broken images (404) HOT 11
- The process has been signaled with signal "7". HOT 2
- When will be the Craft5 version of Image Optimize be released? HOT 6
- Support for new assets to be handled immediately instead of queue
- Sharp: Asset name won't show in src="" so it doens't get SEO ranking HOT 1
- Placeholder background-image has an invalid property HOT 4
- Picture element not working in v4.0.7 HOT 5
- [FR] Split large volume jobs into separate queue jobs HOT 10
- [Craft 5] Google Cloud Storage and IMGix not using Asset Volume Subpath in transform URL HOT 9
- How do I incorporate my native image transforms into the .imgTag() method? HOT 1
- imgTag returns a string varible HOT 3
- srcsetMaxWidth returns incorrect image sizes HOT 6
- Placeholder background-image SVG has an invalid property HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-imageoptimize.