We already use gd which can do much the same as imagemagick (I don't think we have imagemagic on the server). We are already resizing the image if it's too big (pixels size, not byte size).
I already sent a patch long time ago which tells the user that the image cannot be added because it's too big. It works locally but not on the live server because there is another limitation that takes place before the php code can handle the upload. I'll see if we can change the size limit using the .htaccess file; otherwise we'll have to ask Jeremy to do something about it.
I'll add something to make people aware that screenshot that containes things like photos (games, etc.) should be compressed using jpeg and that other files (normal apps) should better be compressed using png (as it won't blur the text).
Thanks for the feedback.
Le vendredi 08 juillet 2005 à 17:29 +0100, Oliver Stieber a écrit :
Would it be possible to offer the option of using imagemagic to resize/format the uploaded images?
--- Jonathan Ernst Jonathan@ErnstFamily.ch wrote:
If we are able to bump the size, we should still not accept images that are too big (>1MB for example) but instead present the user with a message that explains that the picture would be much smaller using jpeg for example.
So the scheme is:
- let the server accept big files
- check the received size
- if the picture is too big, delete it and tell the
user to save it as jpeg for example
Having heavy images will slow down screenshot displaying.
Le vendredi 08 juillet 2005 à 11:47 -0400, Chris Morgan a écrit :
Why don't we just bump the max size up a bit?
Jeremy, is that ok from
a disk space perspective?
Chris
On 7/8/05, Jonathan Ernst
Jonathan@ernstfamily.ch wrote:
Yes I know about it.
The problem is that the file is bigger than the
maximum allowed by the
server.
I'll try my best to find a solution (I already
tried but it doesn't work
on the live server).
Please use jpeg when uploading game-like
screenshots and png for "text
and lines" screenshots. This rule makes
screenshots small enough
usually.
Thanks.
Le jeudi 07 juillet 2005 à 21:00 -0400, Chris
Morgan a écrit :
I've seen these errors as well. I'm not sure
about the root cause. Jon, any
ideas?
Chris
On Thursday 07 July 2005 7:48 pm, Oliver
Stieber wrote:
Hi, The application DB won't let me upload a
screen shot,
I get 'connection to host was lost' or 'page
contains
no data'.
Yahoo! Messenger - NEW crystal clear PC to
PC calling worldwide with
voicemail http://uk.messenger.yahoo.com
-- Jonathan Ernst Jonathan@ErnstFamily.ch
BodyID:104039431.2.n.logpart (stored separately)
-- Jonathan Ernst Jonathan@ErnstFamily.ch
___________________________________________________________ Get My Web - a better way to save web pages http://uk.search.yahoo.com/myresults/default