Hi,

 I installed ImageMagick-6.2.9 and JMAGICK JMagick-6.2.4-1 on a linux
server.
 When I try to run MAKE TEST. I get the following error :

magick.MagickException: No image to set file name
        at magick.MagickImage.setFileName(Native Method)
        at test.Test.main(Test.java:68)

Can somebody tell me how to install Imagemagick and jmagick correct?


Thanks,



Corneillie Olivier
Application Developer


Paratel NV 
Medialaan 1 - 1800 VILVOORDE 
Tel.   +32 (0)2/255.66.80
Fax.  +32 (0)2/253.32.95 
e-mail: [EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: woensdag 6 september 2006 10:01
To: [email protected]
Subject: Magick-users Digest, Vol 44, Issue 6

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. Problem converting to TIFF (Martin Wilson)
   2. Re: Problem converting to TIFF ([EMAIL PROTECTED])
   3. gamma correction vs photoshop levels (Per)
   4. RMagick Rails OSX Tiger Bus Error Abort trap
      (Fractalgrafics, S.A. de C.V.)
   5. Re: dfdfd  (Anthony Thyssen)
   6. Re: gamma correction vs photoshop levels  (Anthony Thyssen)
   7. Re: PS alignment problems (was: dfdfd) (Alex Schuster)
   8. Re: gamma correction vs photoshop levels (Michael Ashton)
   9. Re: PS alignment problems (was: dfdfd)  (Anthony Thyssen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 5 Sep 2006 18:23:18 +0100
From: "Martin Wilson" <[EMAIL PROTECTED]>
Subject: [magick-users] Problem converting to TIFF
To: <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"

Hi,
 
I have a GIF file (which I have upload to:
http://www.bright-interactive.com/downloads/test.gif), which I am trying
to convert to a TIFF file that will open in Windows Picture and Fax
Viewer.
 
When I convert it using Image Magick 6.2.3 on Linux, using:
convert -compress LZW test.gif test.tif
 
all is well - the image opens fine.
 
However, if I try the same command using Image Magick 6.2.4 or 6.2.9 on
Windows, the file fails to open.
The file also fails to open if I use Image Magick 6.2.9 on Linux, which
suggests it is an issue to do with the version.
 
Running
identify -verbose test.tif
on the converted files shows a few differences, for example:
Class: PseudoClass (for the TIFF created with version 6.2.9)
Class: DirectClass (for the TIFF created with version 6.2.3)
 
This may or may not be relevant!
 
- What changed between versions 6.2.3 and 6.2.4 that could have caused
the format of the resulting TIFF files?
- The TIFFs open fine in Photoshop/GIMP. Does anyone know under what
circumstances Windows Picture and Fax Viewer doesn't open images?
 
Any help will be much appreciated!
 
Thanks,
Martin
 


------------------------------

Message: 2
Date: Tue, 5 Sep 2006 13:10:01 -0500
From: [EMAIL PROTECTED]
Subject: Re: [magick-users] Problem converting to TIFF
To: [email protected], [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

> convert -compress LZW test.gif test.tif

We tried your command with ImageMagick 6.2.9-3, the latest release under
Windows XP and it converted fine and the Microsoft viewer opened it
without complaint.


------------------------------

Message: 3
Date: Tue, 5 Sep 2006 19:43:33 +0200
From: "Per" <[EMAIL PROTECTED]>
Subject: [magick-users] gamma correction vs photoshop levels
To: "ImageMagick" <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="iso-8859-1"

IM's gamma correction differ compared to Photoshop's "levels".

Which is more correct?

Original image.
http://213.115.175.18/test_original.png
Output with "Photoshop levels=3.0"
http://213.115.175.18/test_ps.png
Output with "Imagemagick convert -gamma 3.0"
http://213.115.175.18/test_im.png


------------------------------

Message: 4
Date: Tue, 5 Sep 2006 16:48:29 -0500
From: "Fractalgrafics, S.A. de C.V." <[EMAIL PROTECTED]>
Subject: [magick-users] RMagick Rails OSX Tiger Bus Error Abort trap
To: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed


I am using a PowerBook G4 with:
OSX Tiger version 10.4.7; Rubygems 0.9; Rails 1.1.6; RMagic 1.13.0

I have Ruby and 'pals installed at /usr/local/...
just as described in:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger

then installed RMagick as descibed in:
http://hivelogic.com/articles/2006/06/10/rmagick_os_x

Then I installed file_column and the full Rails environment worked fine
for about four weeks.

Three days ago, I had to update Quicksilver, Rubygems and Rails; after
that, I can't access script/console.

If I do:

vr_mex$ script/console
Loading development environment.
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.13.0/lib/RMagick.bundle:
[BUG] Bus Error
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]

Abort trap

So then I deleted all RMagick using: uninstall-RMagick.rb and went to
install RMagick again via the same method:
http://hivelogic.com/articles/2006/06/10/rmagick_os_x

I got nowhere same error when I do script/console under my Rails app
dir; so then I said well maybe it has to do with file_column, so I went
and tried it with acts_as_attachment via doing th sample Rails app in:
http://weblog.techno-weenie.net/articles/acts_as_attachment

For acts_as_attachment example to work, I had to install
acts_as_attachment-1.1.6 that I got from here:
http://svn.techno-weenie.net/projects/plugins/tags/acts_as_attachment...

Well I got acts_as_attachment to work fine, but when I went into Iterm
and tried script/console, I got the same error; so clearly it is not a
problem with acts_as_attachment or file_column

Then from Iterm I did this:
$ ruby -rrubygems -e "require 'RMagick'; puts Magick::Long_version;"
This is RMagick 1.13.0 ($Date: 2006/06/26 23:32:37 $) Copyright (C)
2006 by Timothy P. Hunter
Built with ImageMagick 6.2.8 09/04/06 Q16 http://www.imagemagick.org
Built for ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0] Web page:
http://rmagick.rubyforge.org
Email: [EMAIL PROTECTED]

So I am lost, I need to have script/console access when using RMagic
under Rails.




------------------------------

Message: 5
Date: Wed, 06 Sep 2006 09:23:21 +1000
From: Anthony Thyssen <[EMAIL PROTECTED]>
Subject: Re: [magick-users] dfdfd
To: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>

Alex Schuster on  wrote...
| Hi there!
| 
| I am generating PostScript output with convert, and I like them to 
| have a title. I do this with -label. Is there a way to center the 
| title, or to align to the right?
| 
Yes  -gravity north  to center the title at the top of the image.


For example

    convert -size 320x60 xc:lightblue  -fill blue  -gravity North \
            -annotate 0 'Hello Cruel World'     annotate.gif

I have been pushing for a separate justification setting that is
semi-linked to -gravity positioning when unset.

| I guess I should go with the -title option.
|
That is only for montage images. (Eg an index image for lots of other
images)

| with this (didn't try longer, though), and with low image resolution 
| the title probably gets rendered in bad resolution, too.
|
Even at low resolution the font should render well. The only time that
is not the case is when drawing on a transparent background and saving
to GIF or XPM which does not allow semi-transparent pixels.

| I could  increase the resolution with another conversion maybe, but I 
| thought  I'd aske here before, maybe I'm overlooking a simpler method.
| 
See.. IM Examples  Postscript
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/text/#postscript

Where I talk about using -density to increase the postscript conversion
to image, specifically to improve anti-aliasing.

Drawn text does not have that same problem.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 
------------------------------------------------------------------------
-----
   An' then [EMAIL PROTECTED], he come scramblin' outta the terminal
room
   screamin' "The system's crashing! The system's crashing!
                       --- Uncle RAMus, 'Tales for Cyberpsychotic
Children'
 
------------------------------------------------------------------------
-----
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


------------------------------

Message: 6
Date: Wed, 06 Sep 2006 09:26:39 +1000
From: Anthony Thyssen <[EMAIL PROTECTED]>
Subject: Re: [magick-users] gamma correction vs photoshop levels
To: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>

"Per" on  wrote...
| IM's gamma correction differ compared to Photoshop's "levels".
| 
| Which is more correct?
| 
| Original image.
| http://213.115.175.18/test_original.png
| Output with "Photoshop levels=3.0"
| http://213.115.175.18/test_ps.png
| Output with "Imagemagick convert -gamma 3.0"
| http://213.115.175.18/test_im.png

I do not think photoshop levels is a gamma correction!

Anyone know what it is?

Per,
  you may also like to look at the recent additions to the IM Examples
Photo Modifications page, on image brightening.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 
------------------------------------------------------------------------
-----
       Fast.   Powerful.   User-friendly.       Now choose any two.
 
------------------------------------------------------------------------
-----
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


------------------------------

Message: 7
Date: 06 Sep 2006 03:24:00 +0200
From: [EMAIL PROTECTED] (Alex Schuster)
Subject: Re: [magick-users] PS alignment problems (was: dfdfd)
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

Sorry for the strange original subject, this was unintentionally :(

Anthony writes:

> Alex Schuster on  wrote...

> | I am generating PostScript output with convert, and I like them to 
> | have a title. I do this with -label. Is there a way to center the 
> | title, or to align to the right?
> |
> Yes  -gravity north  to center the title at the top of the image.

I just tried this, and got no output at all. And
http://imagemagick.org/script/command-line-options.php#gravity sounds
like -gravity wouldnot work with -label.


This is what I am doing (in a bash script):

montage -tile "$tile" \
        -pointsize $MultiPointSize \
        -label $tileLabel \
        -geometry "$oGeometry2" \
        "[EMAIL PROTECTED]" PNG:- 2> /dev/null |
        convert ${rotate:+-rotate $rotate} \
                -pointsize ${PointSize:-15} -font Arial \
                ${topLabel:+-label "$topLabel"} \
                -gravity North \
                ${oGeometry:+-page "$oGeometry"} \
                PNG:- PS2:"$printFile}"

That is, I montage all pageFiles together with an optional label
(usually unset) into PNG format, and convert this into PostScript,
zooming to a little less than A4 format, and giving a title ($topLabel).

Without the -gravity line, all is fine.
I replaced '-label "$topLabel"' with '-annotate 0 "$topLabel"', and also
got an empty image. I had already tried that before, with -draw text
instead of -annotate, with the same result.


While I am at it: How can I align the whole result image to the right?  
I thought that -gravity wohld also do this, but whenever I use it, I get
an emty image.
My montage works fine with the right page geometry (581x790+50+20 with
2x4 tiling), but with a different tiling I need another page geometry.  
I must be making some stupid mistakes here.

> For example

>     convert -size 320x60 xc:lightblue  -fill blue  -gravity North \
>             -annotate 0 'Hello Cruel World'     annotate.gif

Okay, this is working fine. And still okay when I output to annotate.ps.
But when I add '-page A4', I get an empty image again.


> | with this (didn't try longer, though), and with low image resolution

> | the title probably gets rendered in bad resolution, too.
> |
> Even at low resolution the font should render well. The only time that

> is not the case is when drawing on a transparent background and saving

> to GIF or XPM which does not allow semi-transparent pixels.

But compared to the resolution of native PostScript text?
Your example above does not look too good in PS, well, it's only 72 dpi
I guess. I tried to increase the resolution (-density 300) and got a
small image of course. With higher size I got a good-looking font, but
the image was 10 MB huge, that's 10 times the size I usually have.  
This would be a perfomance problem for the printer and for the server
(my script automatically fetches medical ultrasound images and prints
them).


> | I could  increase the resolution with another conversion maybe, but 
> | I thought  I'd aske here before, maybe I'm overlooking a simpler
method.
> |
> See.. IM Examples  Postscript
>   http://www.cit.gu.edu.au/~anthony/graphics/imagick6/text/#postscript

That's an excellent guide, Anthony! I had already read lots of it and
became very impressed of ImageMagick's capabilities. I used convert for
many years to convert into PostScript and resize a little, but now I am
starting to do more complicated things. It's just a little overwhelming,
with so many features :)

        Alex


------------------------------

Message: 8
Date: Tue, 5 Sep 2006 23:02:20 -0400
From: "Michael Ashton" <[EMAIL PROTECTED]>
Subject: Re: [magick-users] gamma correction vs photoshop levels
To: "ImageMagick User List" <[email protected]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 9/5/06, Anthony Thyssen <[EMAIL PROTECTED]> wrote:


> I do not think photoshop levels is a gamma correction!
>
> Anyone know what it is?


 Photoshop 'Levels' allows gamma, white point and black point to be
adjusted independently. This is not the first time I have seen
differences in results between Photoshop and ImageMagick, and Photoshop
is not gospel, however, the basic [photographic] gamma formula is known
so the question and examples are interesting.

Michael Ashton


------------------------------

Message: 9
Date: Wed, 06 Sep 2006 17:26:13 +1000
From: Anthony Thyssen <[EMAIL PROTECTED]>
Subject: Re: [magick-users] PS alignment problems (was: dfdfd)
To: ImageMagick User List <[email protected]>
Message-ID: <[EMAIL PROTECTED]>

Alex Schuster on  wrote...
| Sorry for the strange original subject, this was unintentionally :(
| 
| Anthony writes:
| 
| > Alex Schuster on  wrote...
| 
| > | I am generating PostScript output with convert, and I like them to

| > | have a title. I do this with -label. Is there a way to center the 
| > | title, or to align to the right?
| > |
| > Yes  -gravity north  to center the title at the top of the image.
| 
| I just tried this, and got no output at all. And 
| http://imagemagick.org/script/command-line-options.php#gravity sounds 
| like -gravity wouldnot work with -label.
| 
-label is a image attribribute and is only used as a type of 'comment'
string.  The only IM program to make real use of it is "montage", and
only of the label that appears underneath images!

You want to annotate some text, or overlay an image onto existing image.

| 
| This is what I am doing (in a bash script):
| 
| montage -tile "$tile" \
|         -pointsize $MultiPointSize \
|         -label $tileLabel \
|         -geometry "$oGeometry2" \
|         "[EMAIL PROTECTED]" PNG:- 2> /dev/null |
|         convert ${rotate:+-rotate $rotate} \
|                 -pointsize ${PointSize:-15} -font Arial \
|                 ${topLabel:+-label "$topLabel"} \
|                 -gravity North \
|                 ${oGeometry:+-page "$oGeometry"} \
|                 PNG:- PS2:"$printFile}"
| 
| That is, I montage all pageFiles together with an optional label 
| (usually unset) into PNG format, and convert this into PostScript, 
| zooming to a little less than A4 format, and giving a title 
| ($topLabel).
| 
Ok you create a 'montage' image.  Now do you want to add the label on
top of the image, or above the image?

Assuming the latter (like montage -title but with more control)

   montage ..... PNG:- | \
     convert PNG:- -gravity North -background white  -splice 0x18 \
             -pointsize 15 -font Arial -annotate 0 "$topLabel" \
             PS2:"$printFile"

Note that I read the image before you start processing it!!!!!

To put the label on the bottom use  -gravity South

This was pretty well taken directly from IM Example, Annotating Images
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/annotating/#label_un
der

| While I am at it: How can I align the whole result image to the right?

| I thought that -gravity wohld also do this, but whenever I use it, I 
| get an emty image.
| My montage works fine with the right page geometry (581x790+50+20 with
| 2x4 tiling), but with a different tiling I need another page geometry.

| I must be making some stupid mistakes here.
| 
The trick is to try to avoid knowning just what size the image you are
processing is.  that way it does not need to do any external
calculations.

Almost all the IM examples try to work to that principle.

| But compared to the resolution of native PostScript text?
| Your example above does not look too good in PS, well, it's only 72 
| dpi I guess. I tried to increase the resolution (-density 300) and got

| a small image of course. With higher size I got a good-looking font, 
| but the image was 10 MB huge, that's 10 times the size I usually have.
| This would be a perfomance problem for the printer and for the server 
| (my script automatically fetches medical ultrasound images and prints 
| them).
| 
You never mentioned you were converting TO postscript.
You seemed to indicate you were going from.

IM is not designed for postscript generation,  why, because postscript
is a VECTOR image format.  IM generates raster images.

To get good resolution your image generation must be scaled to
postscript resolution (lots of pixels) with the right -density setting
so font pointsizes also scale properly.

See..
  Actual Font Size, Resolution and Pointsize
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/text/#pointsize

If outputing to a high dpi, set density right, and scale all pixel sizes
to match the output resolution.

And remember a raster image is very large compared to a vector image See
  A word about Vector Image formats
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/formats/#vector

It may be IM is find for something in this, but I am certain you really
want to process your image using a vector image processor.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 
------------------------------------------------------------------------
-----
   Symbolic Link(n) : ``A door closes quietly behind you, you are in a
          twisty maze of little passages, all different.''
 
------------------------------------------------------------------------
-----
     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


End of Magick-users Digest, Vol 44, Issue 6
*******************************************



_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to