Search found 13 matches

by pet
2016-04-18T09:50:26-07:00
Forum: Users
Topic: convert -normalize , ignore edges without crop
Replies: 7
Views: 6921

Re: convert -normalize , ignore edges without crop

thanks, it works perfect for me !
does exactly what I need :D :D

another question: can you make little 'IM' jobs for me ?
I still have some work where I have no solutions ....
I like to pay for good solutions
or you know who make it


pet
by pet
2016-04-18T08:48:00-07:00
Forum: Users
Topic: convert -normalize , ignore edges without crop
Replies: 7
Views: 6921

Re: convert -normalize , ignore edges without crop

wow... thank for the script-example.
i work with linux (bash) but i think i can translate the windows- to the shell-bash script.
and try a picture :)
by pet
2016-04-18T07:01:28-07:00
Forum: Users
Topic: convert -normalize , ignore edges without crop
Replies: 7
Views: 6921

Re: convert -normalize , ignore edges without crop

many thanks for the help.
i understand the point 1. and 2.
and i think i understand the way from 3. and 4.
on the hompage "Gain and Bias" i can see that i have to read the infos of the image, but i dont understand, how i can do it with (-level)
can you give me a example ?
or is necessary to develop ...
by pet
2016-04-18T04:26:27-07:00
Forum: Users
Topic: convert -normalize , ignore edges without crop
Replies: 7
Views: 6921

convert -normalize , ignore edges without crop

hello all...,

give it a solution tu use [ convert -normalize ] but ignore any edges of a image ?

for example:
only calculate 85% (yellow part) of the image and ignore 15% of the edges.
the result have to be like my image out.jpg , ( but with the edges !! ) .

my example image in.jpg , white or ...
by pet
2013-08-26T10:27:37-07:00
Forum: Users
Topic: php & bash = unrecognized option `-brightness-contrast'
Replies: 2
Views: 3720

Re: php & bash = unrecognized option `-brightness-contrast'

was exactly the problem :D
a multiple version of IM
made a symlink to the wrong /bin path and now all work fine
thanks a lot
by pet
2013-08-26T09:09:09-07:00
Forum: Users
Topic: php & bash = unrecognized option `-brightness-contrast'
Replies: 2
Views: 3720

php & bash = unrecognized option `-brightness-contrast'

hello,

when i start a php exec a bash script with a 'convert IM script',
i get the error message:

" convert: unrecognized option `-brightness-contrast' @ convert.c/ConvertImageCommand/791."

but:
i can start directly the bash-shell test.sh without any errors
i can start a php script with ...
by pet
2013-08-14T23:21:57-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

Re: how -trim images with black border and black background


convert Q.jpg -fuzz 20% -format "%@" info:
319x121+15+39
or
convert Q.jpg -fuzz 20% -format "%@" info: | tr "x" " " | sed 's/+/ +/g'
319 121 +15 +39
vs
convert Q.jpg -fuzz 20% -trim -format "%w %h %X %Y" info:
319 121 +15 +39


i tested the different way with 20 large images ,
is exactly the same ...
by pet
2013-08-14T14:41:19-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

Re: how -trim images with black border and black background

oh ... thanks :D
with the -format "%@" the script can run faster.
i think the performance of the script is a important factor for very large and thousends of images.

pet
by pet
2013-08-14T13:53:59-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

Re: how -trim images with black border and black background

now i have a shell-script written, that exactly convert what i need


#!/bin/sh

## settings:

I="Q.jpg" ## image filename
F=20 ## -fuzz %
B="black" ## bordercolor
h=180 ## h = max border trim

######################################################

FULL=`convert $I -format "%w %h" info:`
TRIM ...
by pet
2013-08-13T15:30:54-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

Re: how -trim images with black border and black background

no, is not a 'bad trim' :)
i think the IM 'trim' function is a perfectly solution for 'auto-crop' the most images with color-borders .
only i need defined limits of crop.
by pet
2013-08-13T15:15:02-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

Re: how -trim images with black border and black background

if i fill out the image after trimming, the problem is the position of the trimmed part.
here a example with the moon:
http://www.webform.ch/ttt/hc_106.jpg

example A after
convert A.jpg -bordercolor black -fuzz 20% -trim B.jpg

if i fill out to the original size , the moon is in the middle of ...
by pet
2013-08-13T14:23:35-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

Re: how -trim images with black border and black background

ok,
examples: Image A and B http://www.webform.ch/ttt/hc_105.jpg
http://www.webform.ch/ttt/hc_105.jpg

all images have different borders !
with trim i can auto-crop perfectly (example B)

if IM 'trim' not can find out the difference between border and background (example A) IM trim the half image ...
by pet
2013-08-13T13:33:55-07:00
Forum: Users
Topic: how -trim images with black border and black background
Replies: 17
Views: 34754

how -trim images with black border and black background

hi,
how i can convert -trim images with black borders , but many images have also a big black background. how i can 'trim' not more then for example 15-20 pixels on the edge ?

pet