[R] PNG-import into R
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Mon Nov 21 15:47:56 CET 2005
Tuszynski, Jaroslaw W. wrote:
> Also does anybody know how hard would it be to tap into C code needed for
> 'read.jpeg', 'png' and 'jpeg' functions to write 'read.png' , 'write.png',
> and 'write.jpeg' functions?
Much, much harder than using ImageMagick to convert to one of the
formats that R can read.
> system("convert foo.png foo.pnm")
> foo = read.pnm("foo.pnm")
ImageMagick is here:
http://www.imagemagick.org/script/index.php
And is normally already installed on modern Linux distributions.
But yes, native reading without conversion is sometimes preferable.
Baz
More information about the R-help
mailing list