EXIF and large Thumbnail Size - Page 2 EXIF and large Thumbnail Size - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

EXIF and large Thumbnail Size

Started by jenma, July 16, 2004, 06:08:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tarique Sani

I had added -strip as default BUT have removed it till the time I don't figure out a foolproof way to get the IM version
SANIsoft PHP applications for E Biz

Carsten

Quote from: jenma on July 19, 2004, 01:22:06 PM
O, -strip worked for me alright.
Yes, I know that -strip works with your new version. (and +profile '*' does not).

Here, with my old version of IM, it's the other way round.

So it would be nice to find another option, which works with all versions to implement it as default.
My proposal is +profile \'*\', which works with IM 5.4.4. Perhaps could somebody with a new version of IM try out?

jenma

I just tried +profile \'*\' and it didn't work (IM 6.0.3).  It didn't generate any error message but the thumbnails it generated contain EXIF info and are above 30k.

Joachim Müller

so, after all profile doesn't create errors on newer versions, that's something...

GauGau

OmegaGOD

Maybe I can be of assistence. Directly from Imagemagick's website... the correct Syntax is +profile "*" with DOUBLE quotes instead of single quotes. Also, if you supply an option to Imagemagick that it does not understand, it barfs. So it halts instead of ignoring the bad argument.

--OmegaGOD
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

TerryG


I had added -strip to my IM options, but for some reason it wasn't working reliably.  Some photos, when uploaded, would NOT have the EXIF data stripped from the thumbnails, although if I used the admin utils to recreate the thumbs, then the EXIF data went away.

There is an option to convert called -thumbnail which is an alias for "-geometry -strip"   It seems to work better than specifying them individually.  At least, so far it seems to work. 

To determine your Image Magick version you can run this tiny php script (save it to a file, upload it, then browse to it)


  <?php
  $cmd 
"/usr/local/bin/convert -version";

  
$output "";
  
$retval "";

  
exec ($cmd$output$retval);

  
$count=count($output);
 
//counts number of rows $in results array
 
for($i=0;$i<$count;$i++)
 {
   print 
"$output[$i]<br>";
 }
  
?>



I'm not sure exactly when -thumbnail was added, but I'm on versio 6.1 and it is there.  To use it, modify picmgmt.inc.php in the following manner:

1.  find the line that includes

                    $cmd = "{$CONFIG['impath']}convert -quality {$CONFIG['jpeg_qual']} {$CONFIG['im_options']} -geometry {$destWidth}x{$destHeight} $src_file $im_dest_file";

 
and change the "-geometry" to "-thumbnail"

Terry

TerryG


just a little follow up... -thumbnail still seems to be working much better than -strip or -profile "*"