![]() |
Camera apps? Shrink a jpeg?
I have a Canon IXUS 800 IS digital camera that is happy to write images to an RS-MMC (+ adaptor). High quality images are 2816x2112.
What I would like is an app that can shrink these images to a size suitable for e-mail "postcard" attachments that I could send using my Nokia 770 + Nokia 6600. On Linux I could use something like: djpeg big.jpg | pnmscalefixed -xsize=1024 -ysize=768 | cjpeg > small.jpg I suppose I could try to port theses comand line utilities and use them with xterm. Anyone tried anything similar? Have any better suggstions? |
Quote:
Download process graph applet. Use settings to set delayed screenshot to 3 secs. Open the image you want to send in normal image viewer. Set screenshot to be taken Go to fullscreen mode Wait a few secs. You should now have a nice scaled image in your images folder. I surely hope there is a better way as well, but I thought that this might work for you as well. I seriously think someone should port a small easy-to use and simple image app for 770 for digi pic fixing purposes. |
Perhaps you could convince Teemu to add stuff you need to his flickr app:
http://www.teemuharju.net/2006/05/23/maemoflickr/ I haven't tested it, so might be that scaling is already there. |
u could try www.pxn8.com - where u can upload pics from ur pc and edit the photo online
or set up a photobucket account, where all the pics u upload are resized to a smaller size these are certainly GUI friendly |
Quote:
I just noticed that there is a bug in the script included in PIL that prevents resizing images. I can fix that and post some examples how images can be edited using PIL later today. |
Quote:
|
I am looking for a simple, command-line resizing/cropping tool, too. (I'd still love to have imagemagick on the 770, but any working alternative will do.)
I never knew about the online services, but of course they are not really helpful: After all, the reason why I want to make pics smaller is that I want to avoid sending the large files over a GPRS-connection. :-) Teemu, how would I get the Python Imaging library onto my 770? Is there a package I can install? |
Quote:
|
Ok... now I have the working pil package available for download. You can download it from here (http://www.saunalahti.fi/~tsharju/pymaemo). After installing it you will have some scripts in your /var/lib/install/usr/bin directory. I'd recommend adding this directory to your PATH so the scripts are easier to use. You can do that by typing...
Code:
export PATH=/var/lib/install/usr/bin:$PATH After this you'll be able to use the Python Imaging Library for modifying images. For example you can resize an image by typing... Code:
pildriver.py save smaller.jpg resize 320 240 open larger.jpg |
It works! Cant believe it. See, this is what I love about the 770: I bought a device for surfing the web and reading mails - now its a picture editing tool, a chat client and an ebook-reader. Without extra cost ;-)
Thank you, teemu, for pointing me to this application. I have to dig into the pil-documentation a bit. There's more than resizing... But for a start: Is it possible to give only one parameter (width) when resizing and have pil simply keep the ascpect ratio? From what I see, (size) always requires width and height. What I would like to do first is go through a directory of pictures and shrink all of them to 120px width, keeping the aspect ratio, and save them as filename-120.jpg; thats hard if you dont know what to use as height for each picture... |
Unfortunately, it doesn't work for me ...
Starting with the following image: http://www.canon-europe.com/images/13_346298.jpg, which I renamed to Sample.jpg, I tried the following: /media/mmc1 $ pildriver.py save Small/Sample.jpg resize 768 1024 open Images/Sample.jpg Killed /media/mmc1 $ It ran for about 40 seconds before the 'Killed' message appeared. Resizing the supplied Chill.jpg from 800x480 to 400x240 was successful. I suspect that 2816x2112 may be too large. Any other suggestions? |
Pragmatic solution is a port of libjpeg-progs_6b-10 and use the following:
/media/mmc1 $ djpeg -scale 1/2 Images/Sample.jpg | cjpeg Small/Sample.jpg This gives a 1408x1056 image in a few seconds. Using '-scale 1/4' would give a 704x528 image. So either a bit too big or a bit too small but less effort than just right! |
Quote:
Canon's website seems to suggest that th IXUS 800 ist WiFi enabled. Is ist possible to transfer pictures from the camera to the Nokia 770? I always hoped this would be possible somehow, but I never found out how to use the WLAN-connectivity feature for anything else than internet access. |
All times are GMT. The time now is 09:44. |
vBulletin® Version 3.8.8