Dear anthony,
thanks for your little lesson to become a good programmer :P
my needed code
echo system("$IM_CONVERT -font includes/arial.ttf -fill none -stroke white
-pointsize 28 -draw 'gravity center rotate -45 text 0,0
\"$COPYRIGHTTEXT\"' -resize $GENERALSIZE $IM_JPG_Q80 $filename $PICNAME");
i have found your examples before you replay my question... i wrote i have
search a lot for some example, later i have found your great example site,
you have do a great work there. that what i wanted before. just an example
site. but in your answer you told nothing about your example site ?
and my if i have can a wish ... was like the google i feel luck today...
button :)
---------- Forwarded message ----------
From: [EMAIL PROTECTED] <
[EMAIL PROTECTED]>
Date: 12.05.2006 20:18
Subject: Magick-users Digest, Vol 41, Issue 11
To: [email protected]
Send Magick-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://studio.imagemagick.org/mailman/listinfo/magick-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Magick-users digest..."
Today's Topics:
1. Re: watermark on image (Anthony Thyssen)
2. Re: Making a transparent montage (bug?) (Anthony Thyssen)
3. Re: Making a transparent montage (bug?) (Seth Price)
4. Re: Making a transparent montage (bug?) (Seth Price)
5. Installing problems (June Z)
6. Re: Installing problems (Gabe Schaffer)
7. Re: Installing problems (Micha? Skalski)
8. How to provide rgb color to fill and stroke options (Arpan Biswas)
9. Re: How to provide rgb color to fill and stroke options
(Gabe Schaffer)
----------------------------------------------------------------------
Message: 1
Date: Fri, 12 May 2006 09:16:23 +1000
From: Anthony Thyssen <[EMAIL PROTECTED]>
Subject: Re: [magick-users] watermark on image
To: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
"=?ISO-8859-1?Q?Atilla_Y=F6nel?=" on wrote...
| hi i use this script right now... in php 4
|
| $IM_CONVERT ="/usr/bin/convert";
| $IM_JPG_Q80 ="-quality 80";
|
| echo system("$IM_CONVERT -resize $GENERALSIZE $IM_JPG_Q80 $filename
| $PICNAME");
|
|
| what i need to put in is like this....
|
| -draw 'text 100,100 "i would be
| crazy"'<http://www.emlakplatformu.com%22'/>
| (for watermarking the picture)
|
| i have search now 2 days with uncle google and grandma yahoo, but nowhere
is
| a good documentation, and what i have tested crashed :(
|
| if i have a wish so the label starts down left and ends in the right upper
| corner like a diagonale
|
| hope someone can help...
|
When starting out in any API, it is best to start with a simple trival
case.
I would look for a simple load and save image API example. Examine it
and then try to fit the various operations you want to perform into
that.
Actually if you are a reasonable programmer I would first start with
a command line version, then do to Perl or PHP, and finally work my way
down to C. You get a real good understanding of the librarys and thw
way things are done by doing that.
If you can't find a specific function in the manuals (or source) then
you can ask the specific question to the email list and IM forums, but
a general one like what you asked, which basicaly requests a final
version, is likely to be ignored, as few have the time to do all the
work.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
"Mind you, I'm not wild about computers myself, but they are a tool.
If you have a tool, it's stupid not to use it." -- Doctor Who,
"Inferno"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
------------------------------
Message: 2
Date: Fri, 12 May 2006 10:20:43 +1000
From: Anthony Thyssen <[EMAIL PROTECTED]>
Subject: Re: [magick-users] Making a transparent montage (bug?)
To: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Seth Price on wrote...
| Is it possible to create a transparent montage in Imagemagick? By
| default, the background becomes white. If I explicitly set the
| background to transparent with the -background flag, *everything* is
| transparent except some scattered pixels. This seems like a bug, but
| I'd at least like to know if I'm going about it right.
|
See the notes of various transparent modes in...
IM Examples, Montage, Background and Transparency Handling
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/montage/#bg
| Here is my command:
| montage -verbose -geometry +0+0 -background "rgba(255,255,255,0)"
| world.pol.2700.png world.pol.2700.png png8:world.pol.2700.m.png
|
| You can get "world.pol.2700.png" from http://pricepages.org/temp/
| world.pol.2700.png
|
You can even get IM to get the image...
montage -verbose -geometry +0+0 -background None \
http://pricepages.org/temp/world.pol.2700.png +clone \
world.pol.2700.m.png
PS: PNG8 like GIF is a 256 color table limited image with a single
boolean transparency. So if you are playing with partical transparency,
or resized images with transparency, DON'T USE IT.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
"You know, just once I'd like to meet an alien menace
that wasn't immune to bullets. -- Brigadier, Doctor Who, "Robot"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
------------------------------
Message: 3
Date: Thu, 11 May 2006 19:52:03 -0500
From: Seth Price <[EMAIL PROTECTED]>
Subject: Re: [magick-users] Making a transparent montage (bug?)
To: Anthony Thyssen <[EMAIL PROTECTED]>
Cc: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Nope, it still doesn't work.
PNG8 supports partial transparency (and has for a while). Internet
Explorer only supports PNG8 boolean transparency, though. This has
lead to limited use of partial transparency on the web.
A quick google search pulled up this bug from a while ago:
http://studio.imagemagick.org/pipermail/magick-bugs/2003-September/
001484.html
I wonder if it's the same problem.
~Seth
On May 11, 2006, at 7:20 PM, Anthony Thyssen wrote:
Seth Price on wrote...
| Is it possible to create a transparent montage in Imagemagick? By
| default, the background becomes white. If I explicitly set the
| background to transparent with the -background flag, *everything* is
| transparent except some scattered pixels. This seems like a bug, but
| I'd at least like to know if I'm going about it right.
|
See the notes of various transparent modes in...
IM Examples, Montage, Background and Transparency Handling
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/montage/#bg
| Here is my command:
| montage -verbose -geometry +0+0 -background "rgba(255,255,255,0)"
| world.pol.2700.png world.pol.2700.png png8:world.pol.2700.m.png
|
| You can get "world.pol.2700.png" from http://pricepages.org/temp/
| world.pol.2700.png
|
You can even get IM to get the image...
montage -verbose -geometry +0+0 -background None \
http://pricepages.org/temp/world.pol.2700.png +clone \
world.pol.2700.m.png
PS: PNG8 like GIF is a 256 color table limited image with a single
boolean transparency. So if you are playing with partical
transparency,
or resized images with transparency, DON'T USE IT.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
----------------------------------------------------------------------
-------
"You know, just once I'd like to meet an alien menace
that wasn't immune to bullets. -- Brigadier, Doctor Who,
"Robot"
----------------------------------------------------------------------
-------
Anthony's Home is his Castle http://www.cit.gu.edu.au/
~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
------------------------------
Message: 4
Date: Thu, 11 May 2006 22:28:46 -0500
From: Seth Price <[EMAIL PROTECTED]>
Subject: Re: [magick-users] Making a transparent montage (bug?)
To: Anthony Thyssen <[EMAIL PROTECTED]>
Cc: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII;
delsp=yes; format=flowed
Well, I'm not here to tell you guys how to implement your PNG8
support, but from the looks of it, you may be falling behind.
It looks like PNG8 partial transparency is part of the spec. From
http://www.libpng.org/pub/png/pngstatus.html :
"Many applications now support both basic GIF-like transparency
(palette-based with a single, fully transparent color index) and full
alpha transparency (32-bit RGBA); a handful also support PNG's "RGBA
palette" mode (8-bit with a multi-entry tRNS chunk)."
Example images are on this page:
http://www.libpng.org/pub/png/pngs-img.html
And it *even* looks like IE7 will be supporting PNG8 partial
transparency. See screen shots of previous page here:
http://www.libpng.org/pub/png/pngs-img-ie7w32.html
For more technical info, see here:
http://www.libpng.org/pub/png/book/chapter08.html#INDEX-618
As far as my "bug" goes: I just tried saving as a 24 bit PNG from
montage, then using pngquant to reduce the colors, and it worked
fine. I have the transparency like I wanted, with the palette I
wanted. Hopefully pngquant will also be able to handle my large (4 GB
uncompressed) images, but it will be a number of hours before I can
test that.
Maybe you should take a look at the pngquant source for quantization
algorithm ideas?
~Seth
On May 11, 2006, at 8:10 PM, Anthony Thyssen wrote:
Seth Price on wrote...
| Nope, it still doesn't work.
|
| PNG8 supports partial transparency (and has for a while). Internet
| Explorer only supports PNG8 boolean transparency, though. This has
| lead to limited use of partial transparency on the web.
|
| A quick google search pulled up this bug from a while ago:
| http://studio.imagemagick.org/pipermail/magick-bugs/2003-September/
| 001484.html
|
| I wonder if it's the same problem.
| ~Seth
|
It could very well be.
IM png8: is by defination the same pallette structure as GIF.
and so isn't incorrect in IM terms.
Prehaps a png8t: format is needed for a 8 bit pallet with partical
colors.
Their was some recent work done with color distances last March so
that
all pure transparency colors are of disance zero. This was needed for
layer optimizations as without it a near transparent colors can be
very
distant from each other, distorting color reduction and other color
tests (EG -fuzz color matching stuffs up badly)
This is a linear adjustment as such the RGBA distance between
half-transparent red to half-transparent blue is half the ditance of a
fully opaque red and blue distance.
Hmm my auto sinature picker picked a good on for this topic!
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
----------------------------------------------------------------------
-------
"Brigadier, a straight line may be the shortest distance between
two points,
but it is by no means the most interesting."
-- Doctor Who, "The Time
Warrior"
----------------------------------------------------------------------
-------
Anthony's Home is his Castle http://www.cit.gu.edu.au/
~anthony/
------------------------------
Message: 5
Date: Thu, 11 May 2006 22:11:07 -0700
From: "June Z" <[EMAIL PROTECTED]>
Subject: [magick-users] Installing problems
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi, I'm not sure if this is a bug or if I did something wrong.
I can successfuly build configure.sln in .Net 2003. However, when I try to
finish the Visual Magick configuration, it gives me this error:
Debug Assertion Failed!
Program: C:\ImageMagick-6.2.7\VisualMagick\configure\configure.exe
File: thrdcore.cpp
Line: 173
I'm running WinXP Home.
Thanks!
------------------------------
Message: 6
Date: Fri, 12 May 2006 03:09:04 -0400
From: "Gabe Schaffer" <[EMAIL PROTECTED]>
Subject: Re: [magick-users] Installing problems
To: "June Z" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 5/12/06, June Z <[EMAIL PROTECTED]> wrote:
Hi, I'm not sure if this is a bug or if I did something wrong.
I can successfuly build configure.sln in .Net 2003. However, when I try
to
finish the Visual Magick configuration, it gives me this error:
Debug Assertion Failed!
Program: C:\ImageMagick-6.2.7\VisualMagick\configure\configure.exe
File: thrdcore.cpp
This is wierd! I just downloaded Windows source distribution for 6.2.7
(over 5500 files), and I couldn't find a file called thrdcore.cpp.
Does anybody know where the file comes from?
GNS
------------------------------
Message: 7
Date: Fri, 12 May 2006 10:07:06 +0200
From: Micha? Skalski <[EMAIL PROTECTED]>
Subject: Re: [magick-users] Installing problems
To: "Gabe Schaffer" <[EMAIL PROTECTED]>, "June Z"
<[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="utf-8"
Hi
I think it's MFC CWinThread source file.
Check in MS VC MFC sources (I have VC++ version 6, so I can't tell you exact
line),
it looks like:
ASSERT_VALID(pThread);
or
ASSERT(pfnThreadProc != NULL);
in VC++6.
Michał
----- Original Message -----
From: "Gabe Schaffer" <[EMAIL PROTECTED]>
To: "June Z" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, May 12, 2006 9:09 AM
Subject: Re: [magick-users] Installing problems
On 5/12/06, June Z <[EMAIL PROTECTED]> wrote:
> Hi, I'm not sure if this is a bug or if I did something wrong.
>
> I can successfuly build configure.sln in .Net 2003. However, when I try
to
> finish the Visual Magick configuration, it gives me this error:
>
> Debug Assertion Failed!
> Program: C:\ImageMagick-6.2.7\VisualMagick\configure\configure.exe
> File: thrdcore.cpp
This is wierd! I just downloaded Windows source distribution for 6.2.7
(over 5500 files), and I couldn't find a file called thrdcore.cpp.
Does anybody know where the file comes from?
GNS
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
------------------------------
Message: 8
Date: Fri, 12 May 2006 14:00:17 -0700
From: "Arpan Biswas" <[EMAIL PROTECTED]>
Subject: [magick-users] How to provide rgb color to fill and stroke
options
To: <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Hi
I ve to create an outline text with ImageMagick. So I ve used -stroke,
-strokewidth and -fill options to do the same. I m able to create the
outline text image by providing color names to fill and stroke options like
red,blue,green etc. What I want is provide the RGB combination to do the
same......like rgb(255,0,255) or hex equivalent like #ffff00.
Is there any way I can do it.
My cmmand is as under.....
convert -size 300x100 xc:transparent -font Arial -pointsize 25 -fill white
-stroke black -strokewidth 2 -annotate +20+50 'Test Message' convert_img.png
Plz help
Regards
Arpan
------------------------------
Message: 9
Date: Fri, 12 May 2006 12:33:17 -0400
From: "Gabe Schaffer" <[EMAIL PROTECTED]>
Subject: Re: [magick-users] How to provide rgb color to fill and
stroke options
To: "Arpan Biswas" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 5/12/06, Arpan Biswas <[EMAIL PROTECTED]> wrote:
I ve to create an outline text with ImageMagick. So I ve used -stroke,
-strokewidth and -fill options to do the same. I m able to create the
outline text image by providing color names to fill and stroke options like
red,blue,green etc. What I want is provide the RGB combination to do the
same......like rgb(255,0,255) or hex equivalent like #ffff00.
convert -size 300x100 xc:transparent -font Arial -pointsize 25 -fill white
-stroke black -strokewidth 2 -annotate +20+50 'Test Message' convert_img.png
Did you try:
convert -size 300x100 xc:transparent -font Arial -pointsize 25 -fill
"rgb(255,255,255)" -stroke "rgb(0,0,0)" -strokewidth 2 -annotate
+20+50 'Test Message' convert_img.png
GNS
------------------------------
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
End of Magick-users Digest, Vol 41, Issue 11
********************************************
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users