Picture size limit?

gillenm

Joined: 2005-04-24
Posts: 4
Posted: Sun, 2005-04-24 23:57

Hi,

I set the property " Maximum file size of full sized images in kilobytes"
to 100, but when I uploaded photos to the album they are at thier
original size (around 300k).

I did not check " Keep original image?" and I set no maximum dimension.

Is this working in gallery2?

Thanks,
Martin.

----

Gallery URL (optional): http://cgi.sunim.plus.com/gallery2
Gallery version: Gallery-2.0 beta-2
Webserver (with version): ?
Datatabase (with version): ?
PHP version (eg 4.2.1): ?
phpinfo URL (optional): ?
Graphics Toolkit(s): ?
Operating system: ?
Web browser/version: ?
G1 version (for migration bugs): ?
"

 
gillenm

Joined: 2005-04-24
Posts: 4
Posted: Mon, 2005-04-25 14:56

Hi,

Could it be that ImageMagick is not being called, or is generating some
errors? I enabled all the debugging and the debugging console but I
don't see anything about the ImageMagick invokation.

Is there a way to debug that part?

Thanks,
Martin.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-04-25 17:24

it reduces the file size by reducing the image quality for jpeg or png. if it reduces to minimum quality and the file is still too big it just uses the file at miminum quality.
but yes, you should see "convert" being called in your debug output if imagemagick is your highest priority toolkit..

 
gillenm

Joined: 2005-04-24
Posts: 4
Posted: Mon, 2005-04-25 21:16

Hi, Mindless.

Thanks for the response.

I'm sure that it's not the problem that it cannot reduce to minimum quality
because gallery1 is able to reduce this 232k image to 100k.

I do not see "convert" being called in the debug output, however imagemagick is
the highest priority toolkit, and the imagemagick "test settings" tests all pass.

Where abouts would it normally be in the debug output so that I can put it
in context?

Thanks,
Martin.

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Sat, 2005-04-30 23:16

gillenm, could you enable debug create an id, and an album where I can upload a picture. Alternatively, pm me an admin login to your gallery. I need to see which toolkits are installed (you put ? into the form, but you mention that Imagemagick is the highest priority).

There must be a reference to convert; something like

Executing: ( "/usr/bin/convert"  "-quality"  "95"  "-size"  "150x150" 
"-geometry"  "150x150"  "+profile"  "*" 
"/home/felix/albums2/albums/felix/WO4N0697.jpg" 
"/home/felix/albums2/tmp/imgk_Ll8hJY" )
2>/home/felix/albums2/tmp/g2dbgD6B0wp
file_exists(/home/felix/albums2/tmp/g2dbgD6B0wp)
filesize(/home/felix/albums2/tmp/g2dbgD6B0wp)
unlink(/home/felix/albums2/tmp/g2dbgD6B0wp)
Regular Output:
Error Output:
Status: 0 (expected 0)

if you don't see convert - then for imagemagick isn't called for some reason...