Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

GD2 compression quality

Asked Modified Viewed 3,641 times
T
Thymus
T
Thymus 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hi
Is there a way to change the compression quality for the GD2 compression that fusion uses?

Thank you
0 replies

8 posts

M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

in this line (about 50) in photo_functions_inlcude.php:
elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile); }

add the quality parameter to imagejpeg():
elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile, [b]VALUE BETWEEN 0 AND 100[/b]); }
0 replies
T
Thymus
T
Thymus 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Thank you! Was it that "easy"? :)

I wouldn't hurt to have a quality parameter in the admin settings. Just a thought. :)
0 replies
— 4 months later —
D
docmike
D
  • Member, joined since
  • Contributed 68 posts on the community forums.
  • Started 8 threads in the forums
answered
Member

I second that thought.
0 replies
H
hamsterx2
H
  • Junior Member, joined since
  • Contributed 33 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Quote

Matonor wrote:
in this line (about 50) in photo_functions_inlcude.php:
elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile); }

add the quality parameter to imagejpeg():
elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile, [b]VALUE BETWEEN 0 AND 100[/b]); }


if it want to view the best quality i select 100 right ?
0 replies
H
hamsterx2
H
  • Junior Member, joined since
  • Contributed 33 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Quote

Thymus wrote:
Thank you! Was it that "easy"? :)

I wouldn't hurt to have a quality parameter in the admin settings. Just a thought. :)


didt it work ?
0 replies
H
hamsterx2
H
  • Junior Member, joined since
  • Contributed 33 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Quote

Matonor wrote:
in this line (about 50) in photo_functions_inlcude.php:
elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile); }

add the quality parameter to imagejpeg():
elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile, [b]VALUE BETWEEN 0 AND 100[/b]); }


can i set the quality of the "_t2.jpg" pictures to ?
0 replies
H
hamsterx2
H
  • Junior Member, joined since
  • Contributed 33 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

anyone that can help here ?
0 replies
M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

both thumbnail images are handled by the same function, so adding a quality parameter should affect both.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet