![]() |
2008-04-02
, 16:53
|
|
Posts: 772 |
Thanked: 183 times |
Joined on Jul 2005
@ Montclair, NJ (NYC suburbs)
|
#12
|
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,
...
I've no clue on the photo-taking or emailing end, beyond what I wrote. Any advice is appreciated.
![]() |
2008-04-02
, 17:56
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#13
|
This sounds like more than a little start. I say, Worry about the emailing later.
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!
![]() |
2008-04-02
, 18:09
|
Posts: 118 |
Thanked: 297 times |
Joined on Nov 2007
|
#14
|
Well, I was figuring on aim-n-pray anyhow; I assumed whatever scriptable tool probably won't have video preview.
The Following User Says Thank You to anders_gud For This Useful Post: | ||
![]() |
2008-04-02
, 18:13
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#15
|
![]() |
2008-04-03
, 02:04
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#16
|
#!/bin/sh jpegtopnm -exif=/home/user/tmp.cheezburgr.exif $1 >/home/user/tmp.cheezburgr.ppm echo '<?xml version="1.0" standalone="no"?>' >/home/user/tmp.cheezburgr.xoj echo '<xournal version="0.4.1">' >>/home/user/tmp.cheezburgr.xoj echo '<title>Xournal document - see http://math.mit.edu/~auroux/software/xournal/</title>' >>/home/user/tmp.cheezburgr.xoj echo '<page width="'`pamfile /home/user/tmp.cheezburgr.ppm |cut -f2 |cut -f3 -d' '`'" height="'`pamfile /home/user/tmp.cheezburgr.ppm |cut -f2 |cut -f5 -d' '`'">' >>/home/user/tmp.cheezburgr.xoj echo '<background type="pixmap" domain="absolute" filename="/home/user/tmp.cheezburgr.ppm" />' >>/home/user/tmp.cheezburgr.xoj echo '<layer>' >>/home/user/tmp.cheezburgr.xoj echo '</layer>' >>/home/user/tmp.cheezburgr.xoj echo '</page>' >>/home/user/tmp.cheezburgr.xoj echo '</xournal>' >>/home/user/tmp.cheezburgr.xoj xournal /home/user/tmp.cheezburgr.xoj if [ ! -e /home/user/MyDocs/tmp.cheezburgr.pdf ] ; then rm /home/user/tmp.cheezburgr* exit fi rm /home/user/tmp.cheezburgr.ppm pdftoppm -f 1 -l 1 -r 72 /home/user/MyDocs/tmp.cheezburgr.pdf /home/user/tmp.cheezburgr rm /home/user/MyDocs/tmp.cheezburgr.pdf pnmtojpeg -exif=/home/user/tmp.cheezburgr.exif /home/user/tmp.cheezburgr-*.ppm >$1_edited.jpg rm /home/user/tmp.cheezburgr*
dpkg -i --force-depends-version netpbm_10.0-11.1_armel.deb libnetpbm10_10.0-11.1_armel.deb
![]() |
2008-04-03
, 12:17
|
Posts: 178 |
Thanked: 40 times |
Joined on Aug 2007
@ UK
|
#17
|
![]() |
2008-04-04
, 01:44
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#18
|
dpkg -i --force-depends-version netpbm_10.0-11.1_armel.deb libnetpbm10_10.0-11.1_armel.deb
cheezburgr.sh
cheezburgr.sh image.jpg
![]() |
2009-01-14
, 19:11
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#19
|
Obviously, we need to go through dbus for this; I don't really know what I'm doing there, so count me out. (If I had to do it, I'd probably make pine a dependency)
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2009-01-14
, 20:12
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#20
|
Camera photo grabbage: Anyone know how to do this from a script? No? Hmmm....
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.