Notices


Reply
Thread Tools
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#11
Originally Posted by tso View Post
hmm, now if there was a way to make that menu move of to the side, or share screen space with the main window rather then sit on top of it...
The quickest way is to hack matchbox so that the menu window is movable (directions shown in the first post). But IMO, the main utility is the "gm convert" command line app. I think it's just too difficult to accurately resize/crop an image using the GUI.
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#12
and i would not even know where to start to crop a image by cli...
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#13
All of the "convert" options can be found here.

Using GraphicsMagick to crop an image, you can either use "crop" or "shave". Use crop if you want to specify the size of the cropped image, or use shave if you want to specify the amount to remove from the edges.

So, if you want to take an 800x600 wallpaper and make an 800x480 version of it by just cropping the centre of the image, do this:

Code:
gm convert original-wallpaper.jpg -gravity Center -crop 800x480+0+0 cropped-wallpaper.jpg
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2009-02-03 at 21:53. Reason: fixed to work (removed +repage)
 
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#14
Unfortunately, qole's example works only in ImageMagick, not in GraphicsMagick since GraphicsMagick does not support the +repage option. But the command works if you remove that option.

See also: GraphicsMagick overview
Manpage: gm convert

Here's an example that fetches a big image, resizes it to 800 pixels wide, crops it to 800x480 centered, "flops" it (left-to-right), and displays the final result:
Code:
wget http://interfacelift.com/wallpaper/downloads/00022_stamfordcone_1680x1050.jpg
gm convert -gravity Center -resize 800 -crop 800x480 -flop 00022_stamfordcone_1680x1050.jpg 00022_stamfordcone_800x480.jpg
gm display 00022_stamfordcone_800x480.jpg

Last edited by terrencegf; 2009-02-03 at 21:31. Reason: Added example code
 

The Following User Says Thank You to terrencegf For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#15
thanks, terrancegf,

I tested that in ImageMagick, not GraphicsMagick. I personally don't understand why IM doesn't work the way that GM works. You should be able to use "-gravity Center" and it should just work. So GM works "as expected" for me...

Thanks again for this port. What's the installed size?
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#16
Originally Posted by qole View Post
I tested that in ImageMagick, not GraphicsMagick. I personally don't understand why IM doesn't work the way that GM works. You should be able to use "-gravity Center" and it should just work. So GM works "as expected" for me...
According to wikipedia, GraphicsMagick forked from ImageMagick v.5.5.2. (ImageMagick is now at v.6.4.9). So they are not identical. One thing I really miss from ImageMagick is the "^" option for -geometry/-resize, which lets you specify the minimum dimensions for the resulting image. Oh well.

What's the installed size?
According to the Application Manager, it is 7.4MB. However, when I manually extract everything from the .deb, I calculate it is about 7.0M. If I had left in the docs, that would have increased the size by about 5.2MB.
 

The Following User Says Thank You to terrencegf For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#17
For an icon in the applcation switcher, add
Code:
StartupWMClass=/usr/bin/gm display
to /usr/share/applications/hildon/graphicsmagick.desktop.

 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 669 | Thanked: 433 times | Joined on May 2010
#18
Where can this converter package be downloaded? i cannot seem to find it in the repositories.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:07.