From: Huub on
Hi,

I'm using Perl to print from database, which works great. Now I'd like to
print a .JPG picture with it. However, searching CPAN I find a LOT of
graphics modules. Any recommendation which one to use for this?

Thanks.

From: Martijn Lievaart on
On Wed, 09 Jun 2010 04:40:45 +0000, Huub wrote:

> Hi,
>
> I'm using Perl to print from database, which works great. Now I'd like
> to print a .JPG picture with it. However, searching CPAN I find a LOT of
> graphics modules. Any recommendation which one to use for this?

I'm looking into something similar right now. After searching CPAN, I
looked better at CD::Graph and Chart and found both very similar, and
lacking for my purpose. They are good though.

I then looked at driving gnuplot from perl, and it will probably serve
your needs. It's incredible what you can do with gnuplot.

It still didn't need my needs (for every x-pixel, draw min, max and avg)
so I'm currently deriving from GD::axestype to do it myself.

HTH,
M4
From: Sherm Pendley on
Huub <v.niekerk_@_hccnet.nl> writes:

> I'm using Perl to print from database, which works great.

Good to know.

> Now I'd like to
> print a .JPG picture with it. However, searching CPAN I find a LOT of
> graphics modules. Any recommendation which one to use for this?

For *what*, exactly? The modules on CPAN are for *creating* graphics.
Is that what you want to do, or do you simply want to print an image?

Also, print to where? If this is a question about web programming, it
helps to say so up front - people use Perl for a wide variety of tasks.

sherm--

--
Sherm Pendley <www.shermpendley.com>
<www.camelbones.org>
Cocoa Developer
From: J�rgen Exner on
Huub <v.niekerk_@_hccnet.nl> wrote:
>I'm using Perl to print from database, which works great. Now I'd like to
>print a .JPG picture with it.

I am puzzled.

"print" like in print to a sheet of paper? Normally you would use
whatever means your OS provides for that and normally yes, you could
initiate that via a Perl program, too, just like you would initiate any
other external command from a Perl program.

Or "print" like the print() function in Perl? Well, that is mostly for
text although of course you can use it for binary data, too.

Or what "print" are you talking about?

jue
From: Huub on
On Wed, 09 Jun 2010 07:34:10 -0700, Jürgen Exner wrote:

> Huub <v.niekerk_@_hccnet.nl> wrote:
>>I'm using Perl to print from database, which works great. Now I'd like
>>to print a .JPG picture with it.
>
> I am puzzled.
>
> "print" like in print to a sheet of paper? Normally you would use
> whatever means your OS provides for that and normally yes, you could
> initiate that via a Perl program, too, just like you would initiate any
> other external command from a Perl program.
>
> Or "print" like the print() function in Perl? Well, that is mostly for
> text although of course you can use it for binary data, too.
>
> Or what "print" are you talking about?
>
> jue

Ok, looks like I haven't been clear enough.

I am talking about printing to paper and the intention is to print an
existing jpg picture on the paper after which the data from the database
is printed.

Reading the other reactions, I think it would be easier to first print
that image using Gimp or so, and then re-use the paper using Perl to
print the data. Though it would take at least twice as much time.

Any suggestion welcome.

 |  Next  |  Last
Pages: 1 2 3 4 5
Prev: stuff
Next: FAQ 6.16 How can I do approximate matching?