caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] dump in camlimages
@ 2006-04-11 13:24 Jonathan Roewen
  2006-04-14  6:11 ` Jun Furuse
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Roewen @ 2006-04-11 13:24 UTC (permalink / raw)
  To: OCaml

Quick question :-)

Do the dump functions in the camlimages library basically create a
string equivalent to an RAW image file?

Jonathan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] dump in camlimages
  2006-04-11 13:24 [Caml-list] dump in camlimages Jonathan Roewen
@ 2006-04-14  6:11 ` Jun Furuse
  2006-04-14  9:22   ` [Caml-list][HS] " Florent Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jun Furuse @ 2006-04-14  6:11 UTC (permalink / raw)
  To: Jonathan Roewen; +Cc: OCaml

> Quick question :-)
> 
> Do the dump functions in the camlimages library basically create a
> string equivalent to an RAW image file?

Quick answer :-)

Yes. 

RGBRGB... stream for 24bit-depth image for example. Size is equal to
3 x width x height.

Jun


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list][HS] dump in camlimages
  2006-04-14  6:11 ` Jun Furuse
@ 2006-04-14  9:22   ` Florent Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Florent Monnier @ 2006-04-14  9:22 UTC (permalink / raw)
  To: caml-list; +Cc: Jonathan Roewen

> > Do the dump functions in the camlimages library basically create a
> > string equivalent to an RAW image file?

> Yes.
>
> RGBRGB... stream for 24bit-depth image for example. Size is equal to
> 3 x width x height.

(maybe you don't mind, but just in case)
there are such features in OCaml/ImageMagick too.
you can load all the image data (in jpg, png, raw, etc..) in a string (which 
is usefull for exemple to send an image to a web browser from a cgi-bin)

you can get all the data in a BigArray too for direct exchange of data between 
ImageMagick and OCaml (which feature is only available in the devel version 
of the binding yet)

Florent


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-14  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-11 13:24 [Caml-list] dump in camlimages Jonathan Roewen
2006-04-14  6:11 ` Jun Furuse
2006-04-14  9:22   ` [Caml-list][HS] " Florent Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).