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

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to