maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How to resize multiple images in one step using n900? (https://talk.maemo.org/showthread.php?t=61456)

maya 2010-08-31 12:22

How to resize multiple images in one step using n900?
 
Which application used to reduce several pictures simultaneously? (To attach to an email for example)
thanks

WhiteWolf 2010-08-31 14:57

Re: How to resize multiple images in one step using n900?
 
On the console can do with imagick

debernardis 2010-08-31 15:31

Re: How to resize multiple images in one step using n900?
 
There's an optified package for Imagemagick in http://www.debernardis.it/downloads/...fied_armel.deb

maya 2010-08-31 16:03

Re: How to resize multiple images in one step using n900?
 
Quote:

Originally Posted by debernardis (Post 803281)
There's an optified package for Imagemagick in http://www.debernardis.it/downloads/...fied_armel.deb

ah, thank you!
but is there any way to install everything automatically, without worrying about dependencies not installed?
because the site http://maemo.org/packages/view/imagemagick/
advises that needs all these files: libbz2-1.0, libc6 (> = 2.5.0-1), libfreetype6 (> = 2.3.9), libgcc1 (> = 4.2.1), libice6 (> = 1.0.0) libjpeg62, liblcms1 (> = 1.15-1), libpng12-0 (> = 1.2.13-4), libsm6, libtiff4, libwmf0.2-7 (> = 0.2.8.4-6), libx11-6, libxext6, libxml2 (> = 2.6.32), libxt6, zlib1g (> = 1.2.1)
... I do not know exactly what is still missing install. :confused:

benny1967 2010-08-31 19:04

Re: How to resize multiple images in one step using n900?
 
If you're willing to work on the command line anyway, you could do something like

Quote:

$ gst-launch-0.10 filesrc location=original-image.jpg ! decodebin2 ! videoscale ! "video/x-raw-yuv, width=(int)400, height=(int)300" ! ffmpegcolorspace ! dspjpegenc ! filesink location=resized-image.jpg
(Where an image original-image.jpg will be converted to 400x300px and stored as resized-image.jpg)

The only advantage, of course, is that you needn't install any new software. (Although I've heard people say the gst-launch utility isn't there by default... I can't recall havin installed it, and I don't have -testing/-devel enabled on this particular device). All it does is call some functions that are part of Maemo anyway... And you could always wrap it into a script so it loops over a number of files.

debernardis 2010-09-01 04:35

Re: How to resize multiple images in one step using n900?
 
Quote:

Originally Posted by maya (Post 803305)
ah, thank you!
but is there any way to install everything automatically, without worrying about dependencies not installed?
because the site http://maemo.org/packages/view/imagemagick/
advises that needs all these files: libbz2-1.0, libc6 (> = 2.5.0-1), libfreetype6 (> = 2.3.9), libgcc1 (> = 4.2.1), libice6 (> = 1.0.0) libjpeg62, liblcms1 (> = 1.15-1), libpng12-0 (> = 1.2.13-4), libsm6, libtiff4, libwmf0.2-7 (> = 0.2.8.4-6), libx11-6, libxext6, libxml2 (> = 2.6.32), libxt6, zlib1g (> = 1.2.1)
... I do not know exactly what is still missing install. :confused:

Install Imagemagick from extras-devel so that it pulls all the dependencies then install upon it the optified package so that 10 Megs of rootfs are freed.

delaroca 2010-09-01 04:57

Re: How to resize multiple images in one step using n900?
 
Quote:

Originally Posted by debernardis (Post 803281)
There's an optified package for Imagemagick in http://www.debernardis.it/downloads/...fied_armel.deb

Application Manager says package is not installable, something about incompatible package"!

--denis


All times are GMT. The time now is 17:29.

vBulletin® Version 3.8.8