WordPress.org

Support

Support » Plugins and Hacks » Post Thumbnail Editor » [Resolved] [Plugin: Post Thumbnail Editor] Hook for image filters

[Resolved] [Plugin: Post Thumbnail Editor] Hook for image filters

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author sewpafly

    @sewpafly

    I will look into calling this same hook. It shouldn’t be too difficult to add that functionality.

    Update: To add this functionality modify post-thumbnail-editor/php/functions.php around line 639

    Change

    $logger->debug( "Updating '{$size}' metadata: " . print_r( $metadata['sizes'][$size], true ) );
    		wp_update_attachment_metadata( $id, $metadata);

    to

    $logger->debug( "Updating '{$size}' metadata: " . print_r( $metadata['sizes'][$size], true ) );
          wp_update_attachment_metadata( $id,
             apply_filters( 'wp_generate_attachment_metadata', $metadata, $id ));

    Plugin Author sewpafly

    @sewpafly

    Alternately you might be able to just hook into the wp_update_attachment_metadata filter as that is already being fired.

    Hi, I’ve got a similar request.

    I use a plugin called Sharpen Resized Images, which hooks into the ‘image_make_intermediate_size’ step. I was just wondering if you knew of a way I could add this function to your plugin file to sharpen the resulting thumbnails after I crop them.

    Thanks.

    http://wordpress.org/extend/plugins/sharpen-resized-images/

    Plugin Author sewpafly

    @sewpafly

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Post Thumbnail Editor] Hook for image filters’ is closed to new replies.
Skip to toolbar