Ready to get started?Download WordPress


Post Thumbnail Editor
How to get the quality compression percentage to 100 ? (5 posts)

  1. slashCreations
    Posted 2 years ago #

    Hi all !

    Really thanks for your plugin! It's amazing and really helpful!

    But i saw that your plugin resize AND resample my images. So my image lose some quality compression, as you can see with theses two image.

    This is an image uploaded via the wordpress uploading media section.

    And there is an image resized by post-thumbnail editor plugin.
    You can see that i lose some quality compression. I'd like to get 0 compression at all.

    My site is a portfolio. I don't care about bandwith etc. I prefer to show full quality images instead of using less bandwith.

    Thank you by advance !


  2. slashCreations
    Posted 2 years ago #

    I changed this line in post-htumblai-editor/php/functions.php

    // all other formats are converted to jpg
    		if ( !imagejpeg( $image, $destfilename, 90) ){


    // all other formats are converted to jpg
    		if ( !imagejpeg( $image, $destfilename, 100) ){

    I also changed the quality compression from 90 to 100 in these files :
    wp-admin/includes/image.php and image-edit.php, and in wp-includes/media.php

    The image that i linked to, above, are resized with theses parameters.

    Thanks if someone has a tip for me

  3. sewpafly
    Plugin Author

    Posted 2 years ago #

    Thanks, I'll make this value configurable in the future. You can track the status here: https://github.com/sewpafly/post-thumbnail-editor/issues/36

  4. slashCreations
    Posted 2 years ago #

    Ok, thanks for the good news :)

    But, do you have a tip to help me set the quality before your update. I'd like to have it working now ^^

    Thanks for all the stuff you do there!

  5. sewpafly
    Plugin Author

    Posted 2 years ago #

    Oh, I thought that you had already fixed it. It sounds like you were in the right place in your examples above. (Well that one does jpg, as there is no equivalent setting for png/gif).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic