You are not logged in.
Rather than opening gimp, clicking, more clicking, clicking some more, just open a terminal and do something like this.
convert -size 60x60 $TARGET -resize 60x60 +profile '*' $OUTPUTMostly self explanatory, except for the "+profile '*'" part. That removes any metadata, such as exif tags.
1.3 seconds later you will have your avatar.
Last edited by hardran3 (2011-02-26 17:24:49)
Offline
Why is there both a size and resize option?
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
-size gives the image decoder a hint at the output size. This lets it run faster as it doesn't have to return a full size image. -resize sets the dimensions of the output. Probably doesn't matter with single images and modern CPUs, but it could save some time on a batch operation.
Offline
any way to do the "+profile '*'" part on a whole folder of images?
No resizing, no recompressing, just remove the metadata stuff.
bash script?
rmdata /path/to/folder
and it does every image in "/folder"
Also, does that get rid of whatever is in an image that leaves ".comment" folders?
EDIT: Images are 4000x3000 from my camera.
Last edited by Sector11 (2011-09-20 13:55:39)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
-size alters the image geometry, -resize alters the actual image size. Using -size only will, AFAIK, crop the picture in the upper left corner according to your arguments.
I'm so meta, even this acronym
Offline
Rather than using -resize and +profile you can use -thumbnail instead whcih does both and more.
In my own case I needed to resize my own avartar image for the forum (just yeasterday) and this was the line I used...
convert avatar.gif -trim +repage \
-bordercolor white -border 2 \
-thumbnail 60x60 -gravity center -extent 60x60 \
avatar_60x60.pngThis uses trim to remove extra space, add a little space, resize (thumbnail) the image, then pad to exactly 60x60 pixels.
For more details of this see ImageMagick Examples, Thumbnails, Padding
http://www.imagemagick.org/Usage/thumbnails/#pad
Lots of other information is also present too, so enjoy! 
WARNING: In newer Imagemagicks. -size is no longer used as a coder hint. This was removed as it was confusing, as -size is more commonly used to specify the size of internally generated images, such as canvases and gradients.
The hint for the JPEG library (the only one that takes a size hint) is now -define jpeg:size={w}x{h} But remember this is only a hint as to the final size of the image, the actual image read in will be up to twice this size (but always larger), as such a resize is still needed. Its real use is more for saving memory when reading in LOTS of large images.
Note also that the size hint only sizes the JPEG by column and row removal, as such it use better to use a hint that is twice the size of the final image, so you can use a proper filtered image resize, rather than a sampled resize the hint provides. But for heavy shrinking of images it is still a very useful 'hint' to use.
For details see...
Profiles, Stripping, and JPEG Handling
http://www.imagemagick.org/Usage/thumbnails/#profiles
and Controls for Reading JPEG images
http://www.imagemagick.org/Usage/formats/#jpg_read
PS: I am the webmaster and maintainer for ImageMagick Examples 
Last edited by anthony (2011-09-24 10:37:55)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.