Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphics Forum


You are currently viewing our Graphics Forum as a guest. Please register to participate.
Login



Reply
jpg/png smaller file type?
Old 04-19-2006, 03:37 PM jpg/png smaller file type?
NuWeb.co.uk's Avatar
NuWeb.co.uk is OFFLINE

Posts: 361
Trades: 0
Well, i allways thought that PNG was the smaller file type.
But when useing php gd optimize. changeing:
imageJPEG($thumbImg, $basename.".JPG");
to
imagePNG($thumbImg, $basename.".PNG");

http://www.nuweb.co.uk/includes/famous*****.JPG
http://www.nuweb.co.uk/includes/famous*****.PNG

.. The jpg is smaller than the PNG.. Whys that?
What shall i use?
Gif even?
__________________

Please login or register to view this content. Registration is FREE


NuWeb 10101101
NuWeb.co.uk is offline
Reply With Quote
View Public Profile Visit NuWeb.co.uk's homepage!
 
 
Register now for full access!
Old 04-20-2006, 10:51 AM Re: jpg/png smaller file type?
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
From an image editor's point of view, there are different variables that can be adjusted, leading to different file sizes and quality of your optimised image. I don't know about php optimisation...

Also, different image formats are good for different things: gifs for large areas of solid colour and transparent areas, jpg for smooth colour transitions (doesn't support transparency), png similar to jpg and it supports transparency. Using the 'wrong' format may lead to an unnecessary loss in quality. Maybe that would influence which format to optimise to?

Not sure whether that helps at all.
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 05-02-2006, 06:31 PM Re: jpg/png smaller file type?
Experienced Talker

Posts: 49
Trades: 0
png is a 'losslessly' compression algorithm, while jpeg is a lossy format... That's about it.
Servo888 is offline
Reply With Quote
View Public Profile
 
Old 05-03-2006, 03:17 AM Re: jpg/png smaller file type?
Experienced Talker

Posts: 37
Trades: 0
imagejpeg ( resource image [, string filename [, int quality]] )

you can set image quatily
default is 75%
__________________
╠══
Please login or register to view this content. Registration is FREE
══╡
║►►►►
Please login or register to view this content. Registration is FREE

╙─────────┘
cedced is offline
Reply With Quote
View Public Profile
 
Old 05-05-2006, 06:15 PM Re: jpg/png smaller file type?
NuWeb.co.uk's Avatar
NuWeb.co.uk is OFFLINE

Posts: 361
Trades: 0
Very interesting, guess i will use jpeg, on my next update.
Currently useing PNG, as ive been told, that that was smaller in general in the past.

Ill use jpeg 50% quality, their only a couple of hundred small thumbnails.

THANKS!
__________________

Please login or register to view this content. Registration is FREE


NuWeb 10101101
NuWeb.co.uk is offline
Reply With Quote
View Public Profile Visit NuWeb.co.uk's homepage!
 
Old 05-05-2006, 11:42 PM Re: jpg/png smaller file type?
Experienced Talker

Posts: 49
Trades: 0
Quote:
Originally Posted by NuWeb.co.uk
Very interesting, guess i will use jpeg, on my next update.
Currently useing PNG, as ive been told, that that was smaller in general in the past.

Ill use jpeg 50% quality, their only a couple of hundred small thumbnails.

THANKS!
When going from a raw image to png, you get a smaller file size than going with raw to jpeg (100% quality)... But going from jpeg to png, I've always got a larger file size. Strange, very strange.
__________________

Servo888 is offline
Reply With Quote
View Public Profile
 
Old 05-07-2006, 04:54 AM Re: jpg/png smaller file type?
Novice Talker

Posts: 7
Trades: 0
Yes, there's something odd that happens in the conversion from .jpg to .png. I still get smaller files when going from raw to .png
Crooner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to jpg/png smaller file type?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24617 seconds with 12 queries