WordPress.org

Ready to get started?Download WordPress

Forums

Get url of an attached image that is edited by the user (2 posts)

  1. hanheg
    Member
    Posted 1 year 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?

  2. hanheg
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic