Search found 29 matches

by dav22
2020-03-08T08:52:02-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thank you for respond;
yes I did put them on each line, but the the " ' " character just changed to something else,
I use chcp 65001 instead of chcp 1251, and problem solved,
thank you
by dav22
2020-03-08T05:49:19-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

I have another problem that I had before, and IM here can not handle " ' " in the text, text having: I’ve , it’s , They’re , couldn’t, on my previous attempt pulling text from csv file, using code in windows batch file, you suggested to add these on top of batch file and it did work: chcp 1251 setlo...
by dav22
2020-03-07T11:58:24-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thank you for your code, you have been very helpful indeed.
now it is working the way I wanted.
by dav22
2020-03-07T09:50:40-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thank you for your respond, you have been very helpful. in the example above, I want the text stays on blue area and not go over image, I don't want the text clipped, nor do I want to grow the area. if I could control the font size to become smaller, that would be a good for me. I know if I add font...
by dav22
2020-03-07T07:17:32-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thank your for respond and your code, now it is working,

I have a longer text than example and text goes over image.
is there a way to prevent text not go over image,
in a way to limit the text, to fill in certain length.
thanks
by dav22
2020-03-06T15:33:53-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

Thank you for your respond; I use ImageMagick-7.0.9-Q16 on Windows 7 64bit I want to resize and extend an image lengthwise and put some text on the extended area. I have already made the exact code which works fine, but it is for short text, I use font size for the output I want, and it works fine. ...
by dav22
2020-03-06T14:27:49-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

Thank you for respond; I had this with my older image creation, I copied somewhere from this forum I assume, and that was set to zero, I did not noticed anything wrong with it, so I copied it with new coding, this time I want to use longer text so trying to use this method, because I don't want to u...
by dav22
2020-03-06T13:42:51-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thank you for your respond, an output image is created, 1- the output image is the right size, but no image has been added, it suppose to add my image to it. 2- the text show up very small, and it does not wrap , long text is cut off. magick image1.jpg -resize 227 -gravity south -background lightblu...
by dav22
2020-03-06T12:28:59-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thank you for your respond; I can not make it work, here is how I put my example code into your code: magick image1.jpg { -resize 227 -gravity south -background lightblue -extent 0x504 -fill black -gravity northwest -annotate 0x0+0+25} -set option:MYSIZE %wx%h ( -size %[MYSIZE] label:"This is sample...
by dav22
2020-03-06T10:53:25-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

Re: can not make font size adjust itself

thanks for the reply;
I have already tested with caption: and label: as well as reading from file,
so it does not work the way I put it in above code in one go, I have to make the image first from my text, then write another code to put together the text image and actual image,
thanks
by dav22
2020-03-06T08:01:40-07:00
Forum: Users
Topic: can not make font size adjust itself
Replies: 20
Views: 3865

can not make font size adjust itself

I have problem to make my code works that the text fill the area with proper font size, if I want to make an image out of only text the font size is automatically adjusted when size of image is provided, but here I want to extend an image to have some extra space to have text on it, in this case the...
by dav22
2020-03-02T14:10:11-07:00
Forum: Users
Topic: read text from csv file using php and create image
Replies: 3
Views: 1436

Re: read text from csv file using php and create image

Thanks for the reply; I just want to make the script work for me, read text from rows on csv file one by one, and create one image from each row of text, and of course name the image something, that is what I think the script should do. as I mentioned there is no image created, the only things I not...
by dav22
2020-03-02T12:24:53-07:00
Forum: Users
Topic: read text from csv file using php and create image
Replies: 3
Views: 1436

read text from csv file using php and create image

running ImageMagick-7.0.9-Q16, on windows 7 64 bit I was searching through this forum for variation of image creation using data on csv file, I found https://www.imagemagick.org/discourse-server/viewtopic.php?t=15279 that Bonzo provided a php script, it can read text from a pipe Delimited csv file a...
by dav22
2020-03-01T10:57:22-07:00
Forum: Users
Topic: [Solved] converting certain characters from csv file to image problem
Replies: 4
Views: 1511

Re: converting certain characters from csv file to image problem

ya, sorry I did not provide the code: Edit: here is the link to csv file: https://www.dropbox.com/s/f841ih6u7eavfe9/text-1.csv?dl=0 here it is: and I run it in .bat file setlocal enabledelayedexpansion set NUM=0 for /F "tokens=*" %%A in (text-1.csv) do ( magick ^ -size 230x300 ^ -gravity Center ^ -b...