how to create an empty file with command
how to create an empty file with command
i want to make 800x600 png file using only command line .
File should be empty that is background transparent.How can I do this ?
Actually I don't like to use graphical interface.
File should be empty that is background transparent.How can I do this ?
Actually I don't like to use graphical interface.
Re: how to create an empty file with command
Code: Select all
convert -size 800x600 xc:none empty.png
Thank You bonzo and one more question
Thank you bonzo.
i have one more question .
QUESTION
I want to create a strip on which just lxuser is written.
what I normally do is
convert -size 800x600 xc:white empty.png
composite label:lxuser empty.png lxuser.png
Then i have to crop the 800x600 lxuser.png image since I want just the text .
i think there should be an easy way ?
what do you suggest ?
i have one more question .
QUESTION
I want to create a strip on which just lxuser is written.
what I normally do is
convert -size 800x600 xc:white empty.png
composite label:lxuser empty.png lxuser.png
Then i have to crop the 800x600 lxuser.png image since I want just the text .
i think there should be an easy way ?
what do you suggest ?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: how to create an empty file with command
try
convert -background white -size 800x label:"lxuser" -trim +repage lxuser.png
see using just width to specify the text for label and automatically fit font and text to that width at http://www.imagemagick.org/Usage/text/#label and -trim to remove any excess white
see -trim at http://www.imagemagick.org/script/comma ... s.php#trim
convert -background white -size 800x label:"lxuser" -trim +repage lxuser.png
see using just width to specify the text for label and automatically fit font and text to that width at http://www.imagemagick.org/Usage/text/#label and -trim to remove any excess white
see -trim at http://www.imagemagick.org/script/comma ... s.php#trim
thank you fmw42.Please see my 'font' question ?
from the link you pointed out
All guys who want to make image containing just text can do with following simple single (one line) command(credit to fmw42 and bonzo)
was the simplest because here we are just mentioning that pointsize should be 72 & imagemagick does rest of selecting picture dimensions(width as well as height).
But when I tried
convert -background lightblue -fill blue -font Candice -pointsize 72 label:Anthony label.gif
output was
convert: unable to read font `Candice'.
SOLUTION
i had to specify path to font file then it worked.
QUESTION
Can you tell command to find out fonts IM knows & how can we add to that list?
All guys who want to make image containing just text can do with following simple single (one line) command(credit to fmw42 and bonzo)
Code: Select all
convert -background white -fill black -pointsize 72 label:WhateverYouWantToWrite OutputFile
But when I tried
convert -background lightblue -fill blue -font Candice -pointsize 72 label:Anthony label.gif
output was
convert: unable to read font `Candice'.
SOLUTION
i had to specify path to font file then it worked.
QUESTION
Can you tell command to find out fonts IM knows & how can we add to that list?
Last edited by manit on 2009-12-21T03:44:54-07:00, edited 4 times in total.
Re: how to create an empty file with command
Depending on your IM version:
Code: Select all
convert -list type
or
convert -list font
Thank you bonzo.Another thing I wanted to ask ?
how can I see preview of all fonts supported ?
PS:I am pleased with prompt reply at this forum & amazed at plethora of things imagemagick can do though i know little about image manipulation.
PS:I am pleased with prompt reply at this forum & amazed at plethora of things imagemagick can do though i know little about image manipulation.
Re: how to create an empty file with command
If you can use php try the examples on this page:
http://www.rubblewebs.co.uk/imagemagick ... /fonts.php
Otherwise my previous post should list all the fonts. If I want to use a special font I just use the path with -font.
http://www.rubblewebs.co.uk/imagemagick ... /fonts.php
Otherwise my previous post should list all the fonts. If I want to use a special font I just use the path with -font.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Thank you bonzo.Another thing I wanted to ask ?
see show_fonts and imagick_type_gen scripts at http://www.imagemagick.org/Usage/scripts/manit wrote:how can I see preview of all fonts supported ?
PS:I am pleased with prompt reply at this forum & amazed at plethora of things imagemagick can do though i know little about image manipulation.
Unfortunately the author Anthony is on extended vacation.
Can somebody explain basics of php ?
I want to learn basics of php .
How can it help in tedious work like sometimes I have to create hundreds of circle each of different colour then I put all command in script then execution takes time maybe because 'convert' has not been given the job collectively.
How can it help in tedious work like sometimes I have to create hundreds of circle each of different colour then I put all command in script then execution takes time maybe because 'convert' has not been given the job collectively.
Re: how to create an empty file with command
I have some more info on my website about php use but to answer your question about circles we need more info.