Search found 17 matches

by DanielDD
2018-08-30T11:26:06-07:00
Forum: Users
Topic: Again tcsh problems
Replies: 6
Views: 4862

Re: Again tcsh problems

A solution is here:
https://www.unix.com/shell-programming- ... iable.html

One has simply to change the last line in my very first code to

Code: Select all

eval convert a.tif $namestr b.tif
Daniel
by DanielDD
2018-08-30T06:15:41-07:00
Forum: Users
Topic: Again tcsh problems
Replies: 6
Views: 4862

Re: Again tcsh problems

@snibgo

I found a clumsy solution:

If namestr is empty, I leave namestr1 = "-pointsize 80 -draw" and let
namestr2 empty. Then, your code leads to the execution:

Code: Select all

convert a.tif -pointsize 80 -draw " " b.tif
which works perfectly.

Daniel
by DanielDD
2018-08-29T14:57:23-07:00
Forum: Users
Topic: Again tcsh problems
Replies: 6
Views: 4862

Re: Again tcsh problems

snibgo wrote: 2018-08-29T13:47:40-07:00 The problem is with shell scripting, not IM. I suggest you ask in a shell scripting forum.
Yes, you are right.

Daniel
by DanielDD
2018-08-29T13:04:45-07:00
Forum: Users
Topic: Again tcsh problems
Replies: 6
Views: 4862

Re: Again tcsh problems

@snibgo This is quite correct, but it does not solve my problem. I gave a minimal example. In some cases, $namestr is empty, and then, your code leads to the execution: convert a.tif "" b.tif which does not work. The quote-symbols " should be part of the string. Best regards, Daniel
by DanielDD
2018-08-28T15:24:43-07:00
Forum: Users
Topic: Again tcsh problems
Replies: 6
Views: 4862

Again tcsh problems

Hallo, I created a minimal example: #!/bin/tcsh set gf = \" set namestr = "-pointsize 80 -draw $gf gravity NorthWest fill black text 0,12 a $gf" echo $namestr convert a.tif $namestr b.tif The script produces error messages: -pointsize 80 -draw " gravity NorthWest fill black text ...
by DanielDD
2018-07-09T14:24:20-07:00
Forum: Bugs
Topic: Check whether a tif-file is already zip-compressed
Replies: 6
Views: 9486

Re: Check whether a tif-file is already zip-compressed

I made some research. I think it is possible using "identify -verbose filename | grep something" ,
but I am to tired, now.
by DanielDD
2018-07-09T13:23:47-07:00
Forum: Bugs
Topic: Check whether a tif-file is already zip-compressed
Replies: 6
Views: 9486

Check whether a tif-file is already zip-compressed

Hallo, I want to write a tcsh-script (for cygwin) which explores a directory-tree and compresses each tif in the tree using zip compression. I can write such a script but there is one problem: For efficency, the script should skip zip-compressed files, i.e., I need a method to check whether some tif...
by DanielDD
2017-06-08T11:58:58-07:00
Forum: Users
Topic: Reliability of psd to tiff conversation
Replies: 5
Views: 6562

Re: Reliability of psd to tiff conversation

fmw42's idea did not work.

As snibgo wrote, IM seems to ignore these filters.

Daniel
by DanielDD
2017-06-08T07:44:47-07:00
Forum: Users
Topic: Reliability of psd to tiff conversation
Replies: 5
Views: 6562

Re: Reliability of psd to tiff conversation

I made some experiments and the answer is NO!
by DanielDD
2017-06-08T07:34:27-07:00
Forum: Users
Topic: Reliability of psd to tiff conversation
Replies: 5
Views: 6562

Reliability of psd to tiff conversation

Hallo,

how reliable is a converation like

Code: Select all

convert m.psd -layers merge -compress zip m.tif
Usually, m.psd is a complex document using several layers and smart filters.
Is the result m.tif the same as whether I export m.psd in Photoshop
to a single layer tif?

Daniel
by DanielDD
2016-10-07T05:43:14-07:00
Forum: Users
Topic: Transform portrait aspect to square aspect by adding blurred stripes
Replies: 14
Views: 10402

Re: Transform portrait aspect to square aspect by adding blurred stripes

Thank you very much.

I decided to use fmw42's unix-syntax script, because it was easy to include it into an
existing tcsh-script. I already used it in instagram:
https://www.instagram.com/dr.phot.graph/

Daniel
by DanielDD
2016-10-05T07:45:46-07:00
Forum: Users
Topic: Transform portrait aspect to square aspect by adding blurred stripes
Replies: 14
Views: 10402

Re: Transform portrait aspect to square aspect by adding blurred stripes

ImageMagick 6.9.5-7 Q16 x86_64

I would prefer a tcsh script (cygwin).
by DanielDD
2016-10-05T07:27:29-07:00
Forum: Users
Topic: Transform portrait aspect to square aspect by adding blurred stripes
Replies: 14
Views: 10402

Transform portrait aspect to square aspect by adding blurred stripes

Hallo, I am looking for a simple solution: The input image has a portrait aspect, i.e. the heigth is larger than the width. I want to crop stripes from the left and the right side of the input image, then I want to blur the stripes and montage the stripes left and right to the input image. The resul...
by DanielDD
2013-10-28T10:04:57-07:00
Forum: Bugs
Topic: convert darkens an xcf image
Replies: 14
Views: 12509

Re: convert darkens an xcf image

I found a workaround:

Code: Select all

xcf2pnm i1.xcf | convert - i1.jpg
xcf2pnm is a part of the xcftools package.

DanielDD
by DanielDD
2013-10-28T05:26:09-07:00
Forum: Bugs
Topic: convert darkens an xcf image
Replies: 14
Views: 12509

Re: convert darkens an xcf image

I tried:

Code: Select all

convert i1.xcf   -colorspace RGB   i1.jpg
and

Code: Select all

convert   -colorspace RGB   i1.xcf   i1.jpg
The image became even darker.

Using sRGB instead of RGB produced the same result as before.

DanielDD