![]() |
Re: Camera/Sketch/Email app idea?
Well, I whacked up a script to convert an image to pdf and launch xournal; then you edit it and save as a pdf, then it converts it back. It's too dumb and simple and useless to post yet, if you have imagemagick and xournal, you know how to do it already,
Things missing: Camera photo grabbage: Anyone know how to do this from a script? No? Hmmm..... Mailing: Probably requires DBUS work, should be workable, I just don't know how. Things you may not like: Uses ImageMagick (that requires like 30 MB to install) You have to export as pdf with a specific name, which it does not have as a default value. I've got a plan on how to rectify both of those... it should be out later in the week. I've no clue on the photo-taking or emailing end, beyond what I wrote. Any advice is appreciated. |
Re: Camera/Sketch/Email app idea?
Quote:
And on the N810, you're going to have to stop and look at the picture you took before you decide you got what you intended (unlike the N800, where you should be able to see that you at least framed the subject properly). So implementing this as a second step in a process instead of an everything-in-one-package-starting-from-the-camera-click might be better anyway. Post soon! |
Re: Camera/Sketch/Email app idea?
Quote:
E-mail is probably easy for someone, so I was gonna post without and let them patch it. ;) What's tying me up right now is { pdf | ppm } -> jpeg conversion (other than ImageMagick; I'm trying to eliminate that dependency). Also, it'd be nice to get rotation by 90 degrees; we can check if xrandr is present, and if so, rotate according to screen alignment. But that won't hold up an initial release. If I can't get that in a couple days at worst, I'll release a script that saves as .pdf only. ps My apologies for the flurry of posting and unposting. Microb was on crack. |
Re: Camera/Sketch/Email app idea?
Quote:
|
Re: Camera/Sketch/Email app idea?
Thanks, but I don't python. Well, maybe if I have to I could kludge something together from examples, but I could probably get a C program to do it easier.
|
Re: Camera/Sketch/Email app idea?
1 Attachment(s)
On the other hand, I guess easy does make it easy. I still don't know or want to learn python, but the camera snapshot example looks simple, and with a little down-stripping, useful for this. Maybe I'll give that a shot later... or someone else can, if they get impatient.
But here's a script: Code:
#!/bin/sh
http://packages.debian.org/lenny/armel/netpbm/download http://packages.debian.org/lenny/arm...pbm10/download But the dependencies aren't new enough! :eek: Seemed to work fine with: (as root, of course) Code:
dpkg -i --force-depends-version netpbm_10.0-11.1_armel.deb libnetpbm10_10.0-11.1_armel.deb Oh, and in case you don't notice, no handling of rotation yet. But it should be pretty easy. |
Re: Camera/Sketch/Email app idea?
lol, I like the example image :-)))
|
Re: Camera/Sketch/Email app idea?
OK, just realized I left the instructions out of the previous post, as I sat down to post this one... But here's a new version that uses the camera via easy. I warn, it's not really anywhere close to finished; but it works, so try it.
Instructions: Installation: Dependencies:
http://packages.debian.org/lenny/armel/netpbm/download http://packages.debian.org/lenny/arm...pbm10/download But the dependencies aren't new enough! :eek: Seemed to work fine with: (as root, of course) Code:
dpkg -i --force-depends-version netpbm_10.0-11.1_armel.deb libnetpbm10_10.0-11.1_armel.deb Installation proper: Place cheezburgr_snap.py in /home/user/apps. Or, if you put it elsewhere, edit cheezburgr.sh. Place cheezburgr.sh somewhere executable, such as /home/user/apps. Make both files executable Running: Capturing new image: Code:
cheezburgr.sh Or run it from an xterm, see if I care. The screen will come up with a squashed video preview, a resolution selector, and a click button. Clicky-click click, and it takes a picture, and exits that window, and seems to be doing nothing while it converts the image and launches xournal. Xournal comes up, you make your changes as you see fit, and then you have to choose export as pdf, and click OK without changing the filename. Close xournal now (no point saving), and your image arrives in MyDocs/.images/. From existing image: Code:
cheezburgr.sh image.jpg Todo
|
Re: Camera/Sketch/Email app idea?
Quote:
(dbus-monitor isn't hard to use but I see this post is old so I wouldn't be surprised if you have already added dbus know-how to your very wide unix knowledge ;)) Ah, that just opens a new mail window, not add an attachment. Sorry. |
Re: Camera/Sketch/Email app idea?
Quote:
I have an example videocam line in this post, but a few tweaks would take a jpg picture instead. This also automatically handles rotation-detection. EDIT: Where are your scripts (cheezburgr.sh and cheezburgr_snap.py), Benson? I can't seem to find them in your posts anywhere. |
All times are GMT. The time now is 04:06. |
vBulletin® Version 3.8.8