andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


File size

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Drop Shadowed Thumbnail Creator
View previous topic :: View next topic  
Author Message
surefire
Newbie


Joined: 10 May 2004
Posts: 3

PostPosted: Tue May 11, 2004 8:07 am    Post subject: File size Reply with quote

Just wanted to jot down an observation (which to some of you will be obvious):

It appears that if you are adding a drop shadow to some types of images (like photographs) then changing it from a jpg to a png increases the size of the image dramatically. In a simple test I did, it was a factor of 6x but could be more or less depending on the detail in the photograph.

This is especially important if you are using the class to create a photo album or something similar.

Increasing the file size, multiplied times several thumbnails, could cause a page to load slowly. If you're doing thumbnails, maybe try,

Code:
$ds->showShadow('jpg', '65');


This shows the file as a jpg and lowers the quality (good for thumbnails).

Also, I would suspect that a photo album using png's versus jpg's could be a big hit on bandwidth if you get a lot of hits.

Thank you Andy for thinking ahead and giving us the option to resave as jpg.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Drop Shadowed Thumbnail Creator All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group