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.

PHP Forum


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



Freelance Jobs

Reply
The function imagecreatefrom...()
Old 10-06-2008, 07:52 AM The function imagecreatefrom...()
Novice Talker

Posts: 8
Trades: 0
I have image upload site
But the problem is that I have thumb image after uploading from the function
imagecreatefromgif/png/jpeg()
But the problem how can i do a thumb image from bmp format too because the function imagecreatefrombmp() does not existing
elizool99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-07-2008, 02:36 AM Re: The function imagecreatefrom...()
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Do not use GD functions to resize images. Use imagemagick's convert utility.
__________________

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

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 10-07-2008, 08:34 AM Re: The function imagecreatefrom...()
Novice Talker

Posts: 8
Trades: 0
why not
elizool99 is offline
Reply With Quote
View Public Profile
 
Old 10-08-2008, 02:46 AM Re: The function imagecreatefrom...()
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
You gave at least one reason in your original post. Another reason is that convert is fool-proof: if some dumb user uploads 10Mpx photo and some dumb webmaster does not check image filesize the convert utility will resize it as if nothing happened while the GD will definitely crash with "out of memory".
__________________

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

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 10-08-2008, 02:48 AM Re: The function imagecreatefrom...()
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Not even mentioning that compiled command-line utility is several times faster than a php script and offers more flexibility if you will need not to simply resize images one day.
__________________

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

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to The function imagecreatefrom...()
 

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.27219 seconds with 12 queries