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:
    https://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.