Search found 8 matches

by jensen31
2019-01-29T05:12:25-07:00
Forum: Digital Image Processing
Topic: Getting error using convert with multiple line script
Replies: 1
Views: 146600

Re: Getting error using convert with multiple line script

Update: I found the error. It was all up to I changed default editor to notepad++. So there was a windows line break into sh file. Now all is good. Thank you.

Best regards
Jens
by jensen31
2019-01-29T04:35:45-07:00
Forum: Digital Image Processing
Topic: Getting error using convert with multiple line script
Replies: 1
Views: 146600

Getting error using convert with multiple line script

Hi everybody. in my script test.sh I have the following code: convert -background lightblue -fill blue -font Helvetica -size 1320x140 \ caption:'This text is resized to best fill the space given.' \ /skripte/imgRender/test/caption_filled.gif Running the script from file I get this errors: root ...
by jensen31
2019-01-28T08:48:43-07:00
Forum: Digital Image Processing
Topic: Calculating the correct font size based on an amount of pixels
Replies: 2
Views: 156242

Re: Calculating the correct font size based on an amount of pixels

IM can calculate a best-fit pointsize. See http://www.imagemagick.org/Usage/text/#caption_bestfit . So you can create an image for the text, then composite that over another image if you want. This works perfect! Thank you so much. I only have one question... When I copy this into my putty ...
by jensen31
2019-01-28T02:32:19-07:00
Forum: Digital Image Processing
Topic: Calculating the correct font size based on an amount of pixels
Replies: 2
Views: 156242

Calculating the correct font size based on an amount of pixels

Hello Community, is there a way to calculate the font size depending on a given amount of pixels? Example: I draw text on 5 different images. The words drawen have different amount of characters. Some 3 long, some 12. Right now I have a variable $FONTSIZE where I substract the amount of characters ...
by jensen31
2019-01-24T09:42:31-07:00
Forum: Digital Image Processing
Topic: How to make perspective transform
Replies: 3
Views: 160725

Re: How to make perspective transform

Yes thats it! Thank you! I am trying now to get an image (1900x1343) transformed like in my example link. Example 2 (the right one https://imgur.com/RDu346A) I am confused cause the example on IM page is with a 90x90 pixel graphic. Hard to understand which side is what. So far: convert /skripte ...
by jensen31
2019-01-24T07:03:45-07:00
Forum: Digital Image Processing
Topic: How to make perspective transform
Replies: 3
Views: 160725

How to make perspective transform

Hello folks,

maybe I searched wrong. But I am looking for perspective transform.
Here I have an example: https://imgur.com/RDu346A

Thank you for hints or an code example.

best regards
Jens
by jensen31
2016-01-01T16:43:20-07:00
Forum: Users
Topic: How to draw text from file on an existing image
Replies: 2
Views: 9373

Re: How to draw text from file on an existing image

got it on my own..

KATZE=aufEinemBeim
convert /skripte/dateien/bg.jpg -pointsize 34 -fill white -annotate +266+235 "$KATZE" /skripte/dateien/bg.jpg
by jensen31
2016-01-01T16:29:54-07:00
Forum: Users
Topic: How to draw text from file on an existing image
Replies: 2
Views: 9373

How to draw text from file on an existing image

Hey there, searching for hours... Maybe you can help me. I am on Debian. I want to draw text from file.txt on my existing picture pic.jpg. I do know only how to draw text, which is in the command itself, but not from text file or with variables. Why? The picture is a webcam picture. and the text ...