From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 90749BB83 for ; Fri, 14 Apr 2006 11:20:02 +0200 (CEST) Received: from mail.libertysurf.net (mx-out.libertysurf.net [213.36.80.91]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k3E9K2vD007687 for ; Fri, 14 Apr 2006 11:20:02 +0200 Received: from dyn-83-156-171-225.ppp.tiscali.fr (83.156.171.225) by mail.libertysurf.net (7.2.071) id 44327663001A4EF9; Fri, 14 Apr 2006 11:20:02 +0200 From: Florent Monnier Organization: l'Association Linux-Nantes To: caml-list@yquem.inria.fr Subject: Re: [Caml-list][HS] dump in camlimages Date: Fri, 14 Apr 2006 11:22:14 +0200 User-Agent: KMail/1.8.2 Cc: "Jonathan Roewen" References: <8764lcit56.wl%furuse@yl.is.s.u-tokyo.ac.jp> In-Reply-To: <8764lcit56.wl%furuse@yl.is.s.u-tokyo.ac.jp> X-Face: "`cRNH1ww*pA7BMG\%C8RcGZR33F%q#d~:5U8b[K-NbYLSW_wpx@wk**lzqX3\F'a|gyP"K /emS.&rsSu'a7OiJH&d?,Z6OxW_L}I"z%\><#5LL%uQXl"QY@~9|XyM7{`tAq?Gp@ul&F'# MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604141122.15386.fmonnier@linux-nantes.fr.eu.org> X-Miltered: at nez-perce with ID 443F6942.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; camlimages:01 camlimages:01 ocaml:01 usefull:01 bigarray:01 ocaml:01 height:98 imagemagick:98 imagemagick:98 caml-list:01 functions:01 data:02 data:02 width:97 binding:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 > > 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