WordPress.org

Ready to get started?Download WordPress

Forums

Image Focus Point
Compatibility with imagemagick engine fix (3 posts)

  1. alx359
    Member
    Posted 2 years ago #

    The plugin works great and the concept is excellent. However, the ImageMagick Engine plugin wasn't compatible with it, but the fix was easy. Both plugins get hooks to wp_generate_attachment_metadata, but Image Focus Point needs to do so last.

    In imageFocusPoint.php li ~297

    //[alx359] decrease priority, so the imagemagick engine hooks first (imagemagick-engine.php li ~91)
    //add_action('wp_generate_attachment_metadata', 'ifp_crop', 5, 2);
    add_action('wp_generate_attachment_metadata', 'ifp_crop', 11, 2);

    http://wordpress.org/extend/plugins/imagefocuspoint/

  2. fotofashion
    Member
    Posted 2 years ago #

    YES!!! You are my man! :D

    The fix definitely works. I still have to try it with more images and see how it works with all the different thumbnail sizes and aspect ratios. But I can confirm that it basically does what it is supposed to do (e.g. display a portrait format image in a landscape format thumbnail box w/o cutting off the heads of my models).

    Now I hope that the author of Image Focus Point will keep this plug-in updated, or cooperate with Orangelab (ImageMagick Engine) to maybe provide an all-in-one solution for photographers. The combination of the two plug-in's is what I always wanted.

    Thanks a lot for the fix!

  3. fotofashion
    Member
    Posted 2 years ago #

    Unfortunately spoken too soon... :(

    After applying the patch IFP works as advertised, but the regenerated thumbs do no longer have their color profile embedded. That's, however, why I am using the ImageMagick Engine.

    Looks like IFP strips the metadata after the ImageMagick Engine regenerated the thumbs. That's no good.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic