Convert Problem with 6.5.1

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
HardiHard

Convert Problem with 6.5.1

Post by HardiHard »

First of all please be patient to my english.

I have two problems right now where i cannot figure out how to solve them.
I have searched in this Forum and at google but havent found any answers.

First problem is that i want to convert html code like this for example:

Code: Select all

This is a small formated Textblock<br>
with lots of formated htmlcode<br>
for example: <span style="font-family: Times;">other fonts</span> <br>
or <span style="font-size: 11px;">smaller letters</span> <br>
or <span style="background-color: rgb(255, 255, 0);">background colors</span><br>

or <strong>bold text</strong> or <em>coursive letters</em><br>
or just some <span style="color: rgb(255, 0, 0);">red text</span><br>
or a <span style="color: rgb(255, 0, 0);">block of <br>
<em>formated</em> <span style="background-color: rgb(153, 204, 0);">text </span>with a lot</span> of <strong>this</strong> fo<span style="font-family: Courier;">rma</span>t
this text has to be inputed by users and is created with fckeditor.
the hole block have to be placed over an Background-image fully formated.
is there a special function or a script to solve this ?

The second Problem is that on one Linux machine that cannot convert this code:

Code: Select all

  convert http://www.cit.gu.edu.au/~anthony/images/anthony_castle.gif \
          -resize 100x100 castle_logo.png
the shell outputs an error

Code: Select all

convert: missing an image filename `castle_logo.png' @ convert.c/ConvertImageCommand/2775.
whis convertcode is written on http://www.imagemagick.org/Usage/files/
and is converting correctly on other Linux machine but with IM 6.3.5

both scripts have to be on written for IM 6.5.x because i need the option -respect-parentheses for othe scripts.

I hope you can help me to solve these two problems.
please ask for further information if you need some.


Best regards HardiHard
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert Problem with 6.5.1

Post by anthony »

HardiHard wrote:First problem is that i want to convert html code like this for example:
IM can do this but only by calling on another program to convert that into an image.

The delegate name is "html2ps" whcih converts the html to postscript, and then uses "ghostscript" to convert that to a raster image.

however html2ps is not nearly as good as a full browser. As such some people wanting to get an exact image of what appears in a browser will do screen captures of a real browser to get the image. This however only works for the top part of a html page, and second needs a X window display.

I have even seen a script that starts a 'background' or hidden X windows server, runs a browser on it, remote controls that browse to the page desired, screen captures the page, trims the browser window, saves the image and finally closes down the browser and X window server! I even have the code, but would not gurantee that it actually still works.
The second Problem is that on one Linux machine that cannot convert this code:

Code: Select all

  convert http://www.cit.gu.edu.au/~anthony/images/anthony_castle.gif \
          -resize 100x100 castle_logo.png
the shell outputs an error

Code: Select all

convert: missing an image filename `castle_logo.png' @ convert.c/ConvertImageCommand/2775.
whis convertcode is written on http://www.imagemagick.org/Usage/files/
and is converting correctly on other Linux machine but with IM 6.3.5
looks like that specific linux box is missing the PNG library package.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
HardiHard

Re: Convert Problem with 6.5.1

Post by HardiHard »

Hello anthony,
for the first Problem i have tried the html2ps scripts for several hours. have to try it more i think to undestand and to solve my first Problem.

The Second Problem is i think a bit more tricky.
First of all i had a preinstalled older version of IM on my Linux box.
have configured the 6.5.1 Version and installed then.
then uninstalled the older version.
checked the ./configure for further Problems: nothing .
All seems to be okay. Other converting code convert without problems
now that i want to recieve Images from web it crashes.
png and jpeg support was build correct.

Please help me out.

best regards
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert Problem with 6.5.1

Post by anthony »

Make sure all the development versions of the libraries are installed for IM.

See the discussion about CentOS in this forum, or look for some updates to
http://www.imagemagick.org/Usage/api/#building
in a couple of day, with info on what packages are needed to compile IM locally.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply