• Hi,

    When I click on the Edit button when hovering over an image, none of the information I enter in there is saved when I click update image and then update post. I am also told to choose my crop again, which I don’t really want to do.

    Personally in my code, I am using all of the titles, captions and descriptions related to the image from the original_image. So I am just going to continue editing that information from the Media Library, what would be cool is it you could edit that information from this cropped image too though.

Viewing 1 replies (of 1 total)
  • Thread Starter Patrick Whitty-Clarke

    (@zerodegreeburn)

    Further to this, I’ve just noticed a bug which happens as a result.

    Usually, if you get the image to return data in an array format, you get this kind of thing happening with a print_r

    Array
    (
        [id] => 393
        [alt] =>
        [title] => original_title_cropped
        etc...
    
    [original_image] => Array
            (
                [id] => 323
                [alt] =>
                [title] => original_title
                etc...

    However, if you click the edit button, then try and save some info as described above, then crop the image and save again, the original_image value returned is incorrect, it changes to the first crop of the image.

    You get this happening:

    Array
    (
        [id] => 365
        [alt] =>
        [title] => original_title_cropped
        etc...
    
    [original_image] => Array
            (
                [id] => 352
                [alt] =>
                [title] => original_title_cropped1
                etc...

    So none of the description, caption, title etc data is available.

    For now I’m just going to disable the edit button on the image in the plugin.

    But it would be good in future if you recrop an image, it still has the proper original_image data (the one still visible in the media library) as a reference.

    Thanks,

    Patrick

Viewing 1 replies (of 1 total)
  • The topic ‘Edit Image: None of the info is saved?’ is closed to new replies.