• Resolved opicron

    (@opicron)


    Hi, I like these kind of plugins. Especially during development of my sites.

    I just checked one image and I see the following result:

    Image

    When removing this file and regenerating is the same result follows. Which means that the dimensions are saved incorrectly to the meta data.

    Any ideas? Now I am going to check if other plugins do the same.

    http://wordpress.org/plugins/onet-regenerate-thumbnails/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter opicron

    (@opicron)

    I just checked Regenerate Thumbnails plugin and it generates the same file with the wrong dimensions in the meta data.

    What is happening? I am asking you because I believe you have more experience with the subject =).

    Plugin Author Konrád Koller

    (@orosznyet)

    Hi there,

    The generating (and meta updating) process is made by WordPress. These kind of plugins basically triggers some WordPress functions to “force update”. I’ll check this issue in the next few hour.

    Plugin Author Konrád Koller

    (@orosznyet)

    Okey, a related update coming next week 😉

    Plugin Author Konrád Koller

    (@orosznyet)

    After the 1.3 update the following image meta was generated by WordPress:
    http://onetdev.com/projects/onet_regen_thumbs/debuginfo.png

    The file dimensions are the same from me in the filenames, database meta and the file. If you still have the issue we should arrange a real time chat so I can create a patch for that.

    Thread Starter opicron

    (@opicron)

    I found out that when using $content_width in a theme the wp_get_attachment_src can return invalid meta data. Actually the meta data is good for the theme width, but it does not reflect the correct image sizes.

    Therefor I suggest to use wp_get_attachment_metadata. Which returns the meta data as saved in the wordpress database without any filters applied.

    Thank you for your efforts. I hope the above will help your plugin (if you didnt incorporate it yourself yet (didnt check source)).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘strange?’ is closed to new replies.