Piotr Madej | 2 Aug 18:01 2006
Picon

Retrieving image attributes (JMagick 6.2.6-0 /

Hi,

Have you solved your problem yet?

If no, consider that ProfileInfo is of type byte[]

 

byte[] pi=image.getIptcProfile().getInfo();

System.out.println ("IPTC size: "+pi.length);

 

The next step is to identify and retrive IPTC fields.

 

 

 

__________

Piotr Madej

 

 

 

_______________________________________________
JMagick mailing list
JMagick <at> yeo.id.au
http://www.yeo.id.au/mailman/listinfo/jmagick
Gerhard Schuwerk | 3 Aug 11:04 2006
Picon

JMagick process priority under tomcat/linux

Hi all,

we use JMagick inside a TomCat under Linux. There we convert uploaded user-images into a standard format (jpg) and into different sizes to fit the given size in the webpage (tumbnail --> small, detail view -->big). This conversion runs in one TomCat together with the main web application.

Our administrators requested now the following: They want to set the process priority of JMagick/ImageMagick down to "protect" the main web application (like NICE under linux). Any ideas how to do this?

Thanks, Gerhard

_______________________________________________
JMagick mailing list
JMagick <at> yeo.id.au
http://www.yeo.id.au/mailman/listinfo/jmagick
Martin Wilson | 10 Aug 17:13 2006

Saving EXIF data to an image

Hi,

 

Does anyone have any examples of how to save EXIF data to an image using JMagick? I am guessing that it is possible using MagickImage.profileImage – any help from someone who has done this would be gratefully received!

 

If not, does anyone know of any open-source Java or command-line tools that can be used to save EXIF data to images?

 

Thanks,

Martin

___________

Martin Wilson
martinw <at> bright-interactive.com

Bright Interactive: successfully delivering interactive websites and business applications
http://www.bright-interactive.com

0870 240 6520

 

_______________________________________________
JMagick mailing list
JMagick <at> yeo.id.au
http://www.yeo.id.au/mailman/listinfo/jmagick
he qd | 11 Aug 02:51 2006
Picon

RE: Problem regarding creating scaled image with byte stream


    i do it so,you sure the byte array is correct?

>From: "Vinit Jain" <vinitbipinjain <at> gmail.com>
>To: jmagick <at> yeo.id.au
>Subject: [Jmagick] Problem regarding creating scaled image with byte 
stream
>Date: Fri, 28 Jul 2006 12:58:08 +0530
>
>Hello,
>
>I am passing byte array to the MagicImage class to create its 
>object. Now i
>am scaling the object. After that I am using imageToBlob to return 
>the byte
>array. Somehow this is not working. Anybody has ever tried something 
>like
>this.
>
>
>Please inform me. I am passing byte array as input and taking the 
>output
>byte array to generate my image.
>
>--
>Thanks and Regards,
>
>Vinit Bipin

>_______________________________________________
>JMagick mailing list
>JMagick <at> yeo.id.au
>http://www.yeo.id.au/mailman/listinfo/jmagick

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  
Jacob Nordfalk | 11 Aug 10:15 2006
Picon

Re: JMagick process priority under tomcat/linux

> Our administrators requested now the following: They want to set the process
> priority of JMagick/ImageMagick down to "protect" the main web application
> (like NICE under linux). Any ideas how to do this?

Did you try just setting the priority on the Java thread before
invoking JMagick?
I would say should work, according to the Sun documentation on JNI.

--

-- 
M.v.h.
Jacob Nordfalk
http://javabog.dk
Jacob Nordfalk | 11 Aug 10:23 2006
Picon

crashes and glibc pointer problems - solved

On (Mandriva) Linux, I have had a lot of problems with JMagick.

The JVM halts apruptly with messages like one of these.

*** glibc detected *** free(): invalid pointer: 0x0815a830 ***
*** glibc detected *** double free or corruption (!prev): 0x08341160 ***
*** glibc detected *** double free or corruption (out): 0x083457f8 ***

I now found a solution, and as I have used a lot of time on this one,
I'll drop a note so that any others with the same problem wont have to
use so much time:

Simply set
export MALLOC_CHECK_=0 # Ignore error
before starting the program.

Here is an explanation: http://www.computing.net/linux/wwwboard/forum/27773.html

--

-- 
M.v.h.
Jacob Nordfalk
http://javabog.dk
Gerhard Schuwerk | 15 Aug 10:12 2006
Picon

RE: JMagick process priority under tomcat/linux

Jacob,
we can't set the Web-App Java thread down, because this would influence the complete Web-App.
Or maybe I don't understand how to do this ... Do you have an example code on how to do this?
BR, Gerhard

-----Original Message-----
From: Jacob Nordfalk [mailto:jacob.nordfalk <at> gmail.com]
Sent: Friday, August 11, 2006 10:15 AM
To: Gerhard Schuwerk
Cc: jmagick <at> yeo.id.au
Subject: Re: [Jmagick] JMagick process priority under tomcat/linux


> Our administrators requested now the following: They want to set the
> process priority of JMagick/ImageMagick down to "protect" the main web
> application (like NICE under linux). Any ideas how to do this?

Did you try just setting the priority on the Java thread before invoking JMagick? I would say should work, according to the Sun documentation on JNI.


--
M.v.h.
Jacob Nordfalk
http://javabog.dk

_______________________________________________
JMagick mailing list
JMagick <at> yeo.id.au
http://www.yeo.id.au/mailman/listinfo/jmagick
Martin Wilson | 16 Aug 00:14 2006

ImageInfo.setDensity seems to be ignored

Hi,
 
I am trying to find the JMagick equivalent to the ImageMagick command:
convert -density 200 test-in.jpg test-out.jpg
 
After running the above coomand, the following:
identify -verbose test-out.jpg
shows a resolution of 200x200, as I would expect.
 
I tried the following Java code:
   info = new ImageInfo();
   info.setFileName(sSourceFilename);
   info.setDensity("200");
   miImage = new MagickImage(info);
   miImage.setFileName(sDestFilename);
   info.setFileName(sDestFilename);
   miImage.writeImage(info);
 
identify -verbose on the resulting file shows a resolution of 100x100, which was the resolution of the source image, i.e. info.setDensity("200") seems to have been ignored.
 
Can anyone see what I am doing wrong? I'm using JMagick v6.2.4-1 and ImageMagick v6.2.8. 
 
Thanks,
Martin

 .
_______________________________________________
JMagick mailing list
JMagick <at> yeo.id.au
http://www.yeo.id.au/mailman/listinfo/jmagick
Bob Friesenhahn | 16 Aug 00:20 2006
Picon
Picon

Re: ImageInfo.setDensity seems to be ignored

Set the x and y resolution of Image instead.  When writing an image, 
the information in Image is primarily used.  This can be confusing.

Bob

On Tue, 15 Aug 2006, Martin Wilson wrote:

> Hi,
>
> I am trying to find the JMagick equivalent to the ImageMagick command:
> convert -density 200 test-in.jpg test-out.jpg
>
> After running the above coomand, the following:
> identify -verbose test-out.jpg
> shows a resolution of 200x200, as I would expect.
>
> I tried the following Java code:
>   info = new ImageInfo();
>   info.setFileName(sSourceFilename);
>   info.setDensity("200");
>   miImage = new MagickImage(info);
>   miImage.setFileName(sDestFilename);
>   info.setFileName(sDestFilename);
>   miImage.writeImage(info);
>
> identify -verbose on the resulting file shows a resolution of 100x100, which was the resolution of the
source image, i.e. info.setDensity("200") seems to have been ignored.
>
> Can anyone see what I am doing wrong? I'm using JMagick v6.2.4-1 and ImageMagick v6.2.8.
>
> Thanks,
> Martin
>
> .

======================================
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
please_mail_me@myway.com | 16 Aug 15:33 2006

Diffculty scaling an icon using JMagick.


Hello,

>From past few days I am stuck at a wierd problem.

I am trying to scale an icon. Its a 24x24 .ico image which I wish to scale to 16x16 .png image. The icon can be
downloaded at http://yahoo.com/favicon.ico.

Everything works well on Windows. But only on Linux, that too only in a Tomcat container, the function
MagikImage.scaleImage() returns a MagickImage with no image data. i.e. imageToBlob() returns 'null'.

What possibly could the problem be?

I am using Tomcat 4.1 on a Fedora Core 2 setup.

Thanks alot.
Santosh.

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com

Gmane