-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCS URL isn't being set until image optimized #362
Comments
It also prevents the manual sync. |
Now GCS url will be used but preview won't be available untill they optimize the image.
@ewsopp So we have two option:
@antonkorotkov do you have any idea? |
I think this issue should be moved to the next milestone. @alimuzzaman Can you make sure your commits to this issue do not break anything or just revert them so that we can do a release safely. We need to do it today/tomorrow. |
@antonkorotkov |
Ok, thanks |
@antonkorotkov Need help. |
what exactly? |
Syncing in Stateless mode with image optimizer is a mess. The normal process for sync in Stateless mode with image optimizer:
With the use of In the last commit, I tried to disable SKIP ADD MEDIA when uploading via edit post page. But that doesn't help at all. |
Does this problem exist in Stateless mode only? |
Didn't test in other modes, should be there also.
It ensures that GCS URL gets inserted in the post. |
I don't understand this part: Why we insert a new image? |
Sorry not we the user. |
Ok, what can we really do with this? |
I think if you take a look you might have some idea. |
Ok, will try to look into it this week. Please, give me the instructions on how to setup optimization plugin and steps to reproduce the issue. |
I don't have enough time to look into it. Moving to the next milestone. |
Disabled lazy sync for Smush and Imagify plugin.
I have disabled the lazy sync (skip_add_media). So the workflow should be now:
So there won't be any problem because all image sizes will sync on upload and after optimization (twice). |
Disabled lazy sync for Smush and Imagify plugin.
https://wordpress.org/support/topic/new-media-items-not-updating-with-correct-url/
Affected compatibility: Imagify and Smush.
The sync is being done after Imagify complete the optimization. So we don't get GCS URL until the optimization is completed.
We previously solved it by syncing the full size image first then sync all sizes again when optimization completes.
But the issue in 2.2.4 arrived when we changed (in issue #359) how Imagify prevent the sync on image upload.
Now we have to make sure that Optimization plugins don't prevent when we try to upload full size image first.
We had to do this in this way for performance measure. Unless we would have to sync twice once after upload and again when image optimized.
The text was updated successfully, but these errors were encountered: