WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail Size and Quality? (12 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I recently got thumbnails working on my test blog. I am trying to migrate over from MT to WordPress. Everything looks fine except for thumbnails. I am hoping that I am just missing something. I have two issues.
    With MT I was able to select what size in pixels or percentage that I wanted the image resized. The thumbnail created with WP is too big. Any way around this?
    The second is the thumbnail that is created with WP is _very_ grainy. Has anyone noticed this same poor quality for the image? Am I doing something wrong?

  2. splunk
    Member
    Posted 9 years ago #

    I'm searching the forums for a way to increase the quality of the thumbnail generated, no luck yet but found your post.

  3. NuclearMoose
    Member
    Posted 9 years ago #

    WordPress does not generate thumbnails. It's PHP modules like ImageMagick and GD libraries that do this.

  4. splunk
    Member
    Posted 9 years ago #

    Is there a way to edit the code to make the GD-created thumbnails higher quality? They're really subpar compared to imagemagick

  5. NuclearMoose
    Member
    Posted 9 years ago #

    My suggestion would be to check that you have the most recent GD version.

  6. splunk
    Member
    Posted 9 years ago #

    I've got 2.0.28. Here is an example of what I'm talking about.

    http://dark7.org/journal

    Is there anyway to set the compression level?

  7. splunk
    Member
    Posted 9 years ago #

    Here's an example of the same picture, resized with the method/utils that MT uses...

    http://www.dark7.org/blog/archives/000052.html

    The thumbnail not only looks a lot better, but it's even 4kb smaller.

  8. idreamincode
    Member
    Posted 9 years ago #

    Change the line in the file admin-functions.php
    from :

    @imagecopyresized ($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);

    to

    @imagecopyresampled ($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);

    "imagecopyresampled" does a LOT better job than " imagecopyresized "

    Hope this works + helps!

    I was also having problems with thumbnail quality and didn't like the switch from MT to wordpress for that reason. Maybe this can get in a new update.

    --Kevin

  9. splunk
    Member
    Posted 9 years ago #

    THAT is exactly what I was looking for. Thank you so much Kevin. Now the thumbnail looks great, and is also 4kb smaller than the resized one.

  10. NuclearMoose
    Member
    Posted 9 years ago #

    Kevin,
    Could you please log that in http://mosquito.wordpress.org ? Thanks!

  11. idreamincode
    Member
    Posted 9 years ago #

    Sure thing, already logged it.

  12. 3stripe
    Member
    Posted 8 years ago #

    What are the chances of making this fix available as a plugin?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.