Best way to determine if the actual image has changed...

mattwrightmattwright Registered Users Posts: 124 Major grins
I am wondering when the Serial item of images.get changes? I am trying to find the best way to determine if the actual image has changed. I started with LastUpdated, as it is available even for anonymous users, but it appears that will change when the image is simply moved between albums.

Now I am planning to use MD5Sum, hoping that will only change when the actual image file changes. That requires a login, which is ok, but not ideal.

The documentation for Serial wasn't extremely clear on what types of changes to the image would change this value: "The current revision of this image (or video)." Any insight would be appreciated. Thanks,

Matt

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 12, 2009
    Anything that actually modifies the image as opposed to the image metadata increments the serial number.

    ie. rotating, cropping, applying color effects, replacing the image.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • mattwrightmattwright Registered Users Posts: 124 Major grins
    edited February 13, 2009
    great
    devbobo wrote:
    Anything that actually modifies the image as opposed to the image metadata increments the serial number.

    ie. rotating, cropping, applying color effects, replacing the image.
    Perfect -- thanks!
Sign In or Register to comment.