Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2013, 08:10:22 pm

Login with username, password and session length
Members
Total Members: 10764
Latest: ozzie4x4
Stats
Total Posts: 32371
Total Topics: 5478
Online Today: 70
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 54
Total: 56
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Image quality  (Read 2219 times)
Wegg
Community Suite Customer
Full Member
******
Offline Offline

Posts: 155


View Profile
« on: February 27, 2010, 12:46:14 am »

When the software generates the icon images from the higher resolution ones that are uploaded. . . it seems to be set at a very low jpeg quality.  Is there any way to change that to be a re-sized .png instead?  Or at least increase the quality of the file considerably?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #1 on: February 27, 2010, 04:54:21 pm »

Image quality of the jpeg currently is uses SMF's default setting which is hardcoded into SMF itself but can easily be changed.

Requires one edit to
Sources/Sub-graphics.php
Find
Code:
imagejpeg($dst_img, $destName, 65);

Replace 65 with the image quality that is needed 65 is 65%
So 100 would be perfect quality but takes up more space


There is also a request in to have this built into SMF Gallerly 3.0
Logged
Wegg
Community Suite Customer
Full Member
******
Offline Offline

Posts: 155


View Profile
« Reply #2 on: March 02, 2010, 05:10:13 pm »

That would be handy.  But hacking a .php file will work for now.  Thank you.
Logged
Wegg
Community Suite Customer
Full Member
******
Offline Offline

Posts: 155


View Profile
« Reply #3 on: March 02, 2010, 05:24:11 pm »

I know I saw it once but I can't seem to find it now.  Where do I re-build the images after I have changed the quality setting?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #4 on: March 02, 2010, 05:43:57 pm »

It is the regenerate thumbnails option on each category that will rebuild the thumbnails based on your correct settings.
Logged
Wegg
Community Suite Customer
Full Member
******
Offline Offline

Posts: 155


View Profile
« Reply #5 on: March 02, 2010, 06:34:00 pm »

I go into the category and click "Edit Category" but I can't find anything about regenerating thumbnails.   Cry
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #6 on: March 02, 2010, 06:35:53 pm »

It should be on the main gallery index area should be under the edit/delete gallery area for main galleries.
Logged
Wegg
Community Suite Customer
Full Member
******
Offline Offline

Posts: 155


View Profile
« Reply #7 on: March 03, 2010, 07:02:31 pm »

But. . . this is download pro.  Not the Gallery Pro. . .
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #8 on: March 03, 2010, 07:33:49 pm »

Ooh didn't notice that hmm I might have to port that feature to the downloads system then.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #9 on: March 05, 2010, 12:18:13 am »

Added regenerate thumbnails feature for downloads pro 1.0.14 should have that out tomorrow hopefully.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:27:16 pm]

[Today at 02:20:35 pm]

[Today at 02:11:10 pm]

[Today at 01:18:58 pm]

[Today at 12:22:02 am]

[Today at 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 2.36 seconds with 20 queries.