Support » Themes and Templates » Get url of an attached image that is edited by the user
4 years ago
I use wp_get_attachment_image_src to get the url of a custom image size. That works as long as the user does NOT edit the image.
Once the user edits the image a new set of image sizes is created with an additional string. But wp_get_attachment_image_src still gives the Original format of the image NOT the edited format.
To make a long story short. Is there a function like wp_get_attachment_image_src that gets me the URL of the edited image.
There must be something like that out there, but I cannot find it.
Can anyone point me in the right direction?
Some more digging and I found that wp_get_image_src is nog the problem. There is a bug in WordPress 3.5.1. For custom size images the edited version is not saved. See this bug ticket:
Image Editor doesn’t apply changes to custom image sizes