Support » How-To and Troubleshooting » Update image attachments when scaled

Update image attachments when scaled

  • Hi,
    I noticed that, when an image attachment is scaled by the image Editor, the relative attachment (shown in a post) is not updated; in other words, that attachment refers to the original image file, not to the news scaled one.

    I suppose that’s because the scaled image is only another version of the original file (in fact you can restore that).

    How can I make image attachments update when I scaled them?

    Thank you.

Viewing 1 replies (of 1 total)
  • An useful addiction to my question:

    In my template, I’m using the “$attachment->guid” parameter (from the $attachments array of get_posts() ) to extract the images url and show them.

    This “guid” seems to be always referred to the original file, not to the edit ones (not only scaled, but also rotated etc..).

    Is there a way to update the “guid” array key to that?

Viewing 1 replies (of 1 total)
  • The topic ‘Update image attachments when scaled’ is closed to new replies.