Advanced search  

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]

Pages: 1 [2]   Go Down

Author Topic: EXIF and large Thumbnail Size  (Read 58698 times)

0 Members and 1 Guest are viewing this topic.

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: EXIF and large Thumbnail Size
« Reply #20 on: July 19, 2004, 01:27:25 pm »

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
Logged
SANIsoft PHP applications for E Biz

Carsten

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
Re: EXIF and large Thumbnail Size
« Reply #21 on: July 19, 2004, 01:44:04 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?
Logged

jenma

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: EXIF and large Thumbnail Size
« Reply #22 on: July 19, 2004, 08:10:11 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: EXIF and large Thumbnail Size
« Reply #23 on: July 19, 2004, 10:28:37 pm »

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

GauGau
Logged

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: EXIF and large Thumbnail Size
« Reply #24 on: November 20, 2004, 11:02:34 pm »

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
Logged
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

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 45
Re: EXIF and large Thumbnail Size
« Reply #25 on: April 10, 2005, 01:47:28 am »


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)

Code: [Select]
  <?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
Code: [Select]
                    $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
Logged

TerryG

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 45
Re: EXIF and large Thumbnail Size
« Reply #26 on: April 10, 2005, 05:52:51 pm »


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

Logged
Pages: 1 [2]   Go Up
 

Page created in 0.028 seconds with 20 queries.