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

  1. alx359
    Posted 5 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);


  2. fotofashion
    Posted 5 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
    Posted 5 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

  • Image Focus Point
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic