Search

bbPress Showcase » Plugins by _ck_

bbattachments image quality question

RSS

  1. kineda
    User has not uploaded an avatar

    new member
    Joined: May '09
    Posts: 2

    offline

    Hi CK -

    I'm testing the function imagejpeg (and imagepng for PNG files) to increase the quality of the reduced inline images from a default quality of 75 to 100.

    I've added the following imagejpeg code to test:

    imagecopyresampled($new, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
    imagejpeg($new, $filename, 100);
    $save($new, $output);

    The image quality is increased greatly, however I have to reload the page to see the better image. It's definitely not a cache issue. It's pulling the lower quality image first and then showing the higher quality version after browser refresh.

    I'm unclear what the $save($new, $output) function does, and that may be the culprit.

    Any help would be great! Thanks!

    Posted 2 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

  3. kineda
    User has not uploaded an avatar

    new member
    Joined: May '09
    Posts: 2

    offline

    Thanks CK... that's exactly what I tried before imagejpeg. I couldn't get the unsharpmask function to work correctly. Any tips would be grand!

    Posted 2 years ago #

RSS feed for this topic

Post a reply to “bbattachments image quality question”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
42 users online from in the past 30 minutes. 18 bots 24 guests
3,517 views today 8,638 yesterday 16,043 peak. Most at once 47 today 60 yesterday 131 peak. Visited today: qamilon, pandoracam, lvgalliera
2,288 posts in 394 topics over 66 months by 430 of 2,165 members. Latest: qwe12345100, Janvelden, watchessaleus