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
cannot resize images over a certain file size
Old 03-16-2008, 03:36 PM cannot resize images over a certain file size
Average Talker

Posts: 27
Trades: 0
hi there,

i'm using the scripts from http://fonant.mirrors.phpclasses.org...kage/1261.html (found in the files resize.php, sample.php) where in my CMS a user uploads an image and using the defined functions/classes in there it resizes the image and saves it.

i've used this in other sites without any problems although it seems in this case where a file uploaded may be greater than 1mb then it does not resize it and breaks the script with no further output or actions. i know it seems to be a problem with this function as if i do not use it then the upload actions are fine. generally, it only seems to function on smaller files up to a few hundred k in size.

i am on a 1and1 shared server and in my upload form i have set the max_file_size at 5000000, and my phpinfo on the server shows that my upload_max_filesize is at 20mb anyway and post_max_size is 8mb so it does not appear that that is a problem?

any ideas?
gavrd1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-17-2008, 04:28 AM Re: cannot resize images over a certain file size
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Do not use php to resize images, use imagemagick tools instead. They don't bother if your file is 10 or 100Mb in size because they are written in C. All you need is absolute path to source file (one uploaded through the form) and the absolute path to target file (where it should be saved). One exec() and you are done. No memory leaks, no slowdowns, extended functionality.
__________________

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 03-17-2008, 08:53 AM Re: cannot resize images over a certain file size
Novice Talker

Posts: 5
Trades: 0
right Imagemagik is better
mail8769 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to cannot resize images over a certain file size
 

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