Jump to content

image manipulation in konsole


Recommended Posts

Hi,

 

I've got tif files which I wan't to make new jpgs of.

This is easy:

mogrify -format jpg -quality 100% *.tif

 

BUT

before this I want to sharpen them.

This is easy:

mogrify -unsharp 1 + 0.5 + 0.05 *.tif

 

BUT

my problem is I don't want to have the tifs modified.

And this is done when I do it this way.

 

I could of course first make jpgs and the sharpen but this increases artefacts since I save as jpg twice.

 

So I tried some things like

mogrify ....... | mogrify ......

but I can't find it.

 

Oh yes,

I could do something like

mkdir double
for img in *.tif
do
cp $img ./double
cd double
mogrify -unsharp 1 + 0.5 + 0.05 $.tif
mogrify -format jpg -quality 100% *.tif
rm -f *.tif
cd..
done

but I'm sure it can be done in just 1 line

 

anyone???

 

thanks

 

Jeroen

Edited by JeroenM
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...