List Info

Thread: Writing/Reading comments in IM




Writing/Reading comments in IM
user name
2006-10-30 15:43:25
Have you tried running the code through the perl debugger? 

To use it run your program using 

Perl -d filename.pl

Some of the commands to get you started are

l  - list source 
b  - set break point 
p  - print variables.

Then set a break point on the $Comment_string. At this point
you can examine the variables.

Hope this helps. 


Frank

-----Original Message-----
From: magick-users-bouncesimagemagick.org
[mailto:magick-users-bouncesimagemagick.org] On Behalf
Of Günter Bachelier
Sent: Monday, October 30, 2006 8:04 AM
To: magick-usersimagemagick.org
Subject: [magick-users] Writing/Reading comments in IM

Hello,

after writing/reading comments with PerlMagick is still
not solved for me I went a step back to IM commands:

convert image.jpg -comment
"image.jpg*1373*1985*839*131*" image.jpg

The question is now how to validate if/what
was written i.e. how can a comment be read with IM?



Trying to read the comment of image.jpg after the
application
of the IM command above  in PerlMagick with

$image->Read('image.jpg');
$Comment_string = $image->Get('comment');
print $Comment_string;

results in the termination of the Perl Command Line
Interpreter (Win).


Thanks for further help!

Günter


_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users



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

about | contact  Other archives ( Real Estate discussion Medical topics )