Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 221
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 170
Total: 170

Author Topic: Resized images are png format!  (Read 5690 times)

0 Members and 1 Guest are viewing this topic.

Offline mlinvin

  • Member
  • *
  • Posts: 30
    • View Profile
Resized images are png format!
« on: January 24, 2007, 08:31:57 pm »
My resized images are png formats and of course huge in size. How can I change so the resize will give my jpg??

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Resized images are png format!
« Reply #1 on: January 24, 2007, 08:36:10 pm »
Resizing of images done though SMF. But changing the size to jpeg won't really lower the size that much really and will be of lesser quality.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mlinvin

  • Member
  • *
  • Posts: 30
    • View Profile
Re: Resized images are png format!
« Reply #2 on: January 24, 2007, 08:39:44 pm »
Ok, thanks. Stil I thing the images are far to big. I have tried different setting in the SMF module and even with 75 I get too big images when resizing. Images 680x453 are 661kB.

Offline mlinvin

  • Member
  • *
  • Posts: 30
    • View Profile
Re: Resized images are png format!
« Reply #3 on: January 24, 2007, 08:42:05 pm »
Resizing of images done though SMF. But changing the size to jpeg won't really lower the size that much really and will be of lesser quality.

I'm not you are right. Just checked in photoshop an image of the sixe 660x440 pixels:

png format (png-24): 586kB
jpg (75 quality): 186kB

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Resized images are png format!
« Reply #4 on: January 24, 2007, 08:44:37 pm »
Yes if it is lesser quality then the image will be less space. PNG does not loose quality thats why it is used.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mlinvin

  • Member
  • *
  • Posts: 30
    • View Profile
Re: Resized images are png format!
« Reply #5 on: January 24, 2007, 08:47:20 pm »
Is it possible to change it to jpg and 75 qulity. It is enough for me! Usinng png for this pixel sizes are just too much!

Really, the difference in images between png and the jpg (75) is minimal.

I can't accept images of 500-600 kB of size. That will fill up all my hard drive in 1 month..... :)
« Last Edit: January 24, 2007, 08:49:19 pm by mlinvin »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Resized images are png format!
« Reply #6 on: January 24, 2007, 08:52:15 pm »

Ok here you can do it
Open Sources/Sub-Graphics.php
Find
Code: [Select]
if (!empty($modSettings['avatar_download_png']))
imagepng($dst_img, $destName);
else
imagejpeg($dst_img, $destName, 65);
Replace with
Code: [Select]
imagejpeg($dst_img, $destName, 70);
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mlinvin

  • Member
  • *
  • Posts: 30
    • View Profile
Re: Resized images are png format!
« Reply #7 on: January 24, 2007, 08:58:17 pm »
Thanks. Once again!

The images on 70 was too low quality but puuting it to 90 it looks great and the test image I run is 6 times smaller! Great!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4542 Views
Last post November 25, 2007, 01:37:19 pm
by dlomneck
20 Replies
12923 Views
Last post April 10, 2013, 10:02:19 pm
by SMFHacks
3 Replies
3089 Views
Last post June 26, 2015, 10:30:59 am
by SMFHacks
10 Replies
6194 Views
Last post July 26, 2015, 01:27:16 pm
by Michel68
2 Replies
696 Views
Last post March 04, 2022, 04:20:54 pm
by Shades

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal