Update image attachments when scaled (2 posts)

  1. riccardo.malesani
    Posted 2 years ago #

    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.

  2. riccardo.malesani
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic