magic no Imagemagick

Forum rules
Share your brain ;)
User avatar
ChefIronBelly
Approved BBQer
Posts: 1044
Joined: Mon Jan 13, 2014 6:01 am
Location: Michigan

magic no Imagemagick

Unread post by ChefIronBelly » Tue Jan 21, 2014 12:06 am

Code: Select all

sudo apt-get install imagemagick
- Its a bit fat but I needs to get paid.

This is something I use just about every week. I need to get receipts captured into pdf's and then rolled up to attach to a invoice (email) when travelling. There may be a free phone app for this now, I know there is a pay app so YMMV.
So I use my FREE phone app to snap the receipts and email myself. Let's say image1.jpg, image2.jpg image3.jpg

Code: Select all

convert image1.jpg -page a4 image1.pdf
and so on for the rest of the images.

Then roll em up.

Code: Select all

convert image1.pdf image2.pdf image3.pdf receipts.pdf
If someone has already posted something like this please disregard.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: magic no Imagemagick

Unread post by machinebacon » Tue Jan 21, 2014 3:02 am

Nah it's good, let's collect some little tricks here. Rho has used it in his 'paletter' tool that reads the most used colors of an image - these can be piped into Xresources to have a fitting color scheme for the terminal.

So, keep 'em cumming
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: magic no Imagemagick

Unread post by dkeg » Tue Jan 21, 2014 3:58 am

wow, really like all the knowledge sharing happening.

As a free Android app, I use CamScanner. Works great. Use it for similar reasons as you. Take pictures of my receipts, then store in one of my cloud storage solutions. It saves as PDF. Even works well enough to use for documents, say insurance, mortgage, others, where you need to scan full page doc, but no scanner available. With all our recent moves and no home office space any more, I have used it plenty.

Other than that I use pdftk for concatenating multiple PDF's into one.

I guess I was not aware imagemagick could also handle that task.

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: magic no Imagemagick

Unread post by wuxmedia » Tue Jan 21, 2014 7:41 am

ahh, expense accounts?

I'll just put a little script i stole from the i3 forums/Q&A, to make an obfuscated screen locker.

Code: Select all

#!/bin/bash
scrot /tmp/screen_locked.png
convert /tmp/screen_locked.png -scale 10% -scale 1000% /tmp/screen_locked2.png
i3lock -i /tmp/screen_locked2.png
makes it look pixellated.
Now that I think about it, dkeg answered on that question over at the i3 forum 8)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: magic no Imagemagick

Unread post by dkeg » Sat Jan 25, 2014 2:23 am

^ wux, you can link that to suspend as well. Read here

I usually use a static image, but seeing your post above, thought to link them. So I actually have 2 versions; one just plain lock, the other suspendlock. The plain lock is as seen above, the suspend lock replaces

Code: Select all

i3lock -i /blah/blah
with

Code: Select all

sudo pm-suspend
which calls to /etc/pm/sleep.d/suspend.sh (see linked write-up) I changed the image call image call to point to the /tmp pixelated image

Code: Select all

....
su $username -c "/usr/bin/i3lock -i /tmp/screen_locked2.png"

Work hard; Complain less

User avatar
ChefIronBelly
Approved BBQer
Posts: 1044
Joined: Mon Jan 13, 2014 6:01 am
Location: Michigan

Re: magic no Imagemagick

Unread post by ChefIronBelly » Sat Jan 25, 2014 2:41 pm

dkeg wrote:
As a free Android app, I use CamScanner. Works great. .
Thanks will check it out.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: magic no Imagemagick

Unread post by wuxmedia » Sat Jan 25, 2014 6:15 pm

clever, dkeg. Will implement, once back at work.
Never bothered with a locker before, but was advised as a colleague often enjoys sporadically updating peoples systems, without waiting for the result/potential ensuing chaos.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
ChefIronBelly
Approved BBQer
Posts: 1044
Joined: Mon Jan 13, 2014 6:01 am
Location: Michigan

Re: magic no Imagemagick

Unread post by ChefIronBelly » Sat Jan 25, 2014 6:39 pm

wuxmedia wrote:Never bothered with a locker before, but was advised as a colleague often enjoys sporadically updating peoples systems, without waiting for the result/potential ensuing chaos.
This is always fair game. Walk away logged let the games begin. ;)
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]

Post Reply