$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Christian Henning (chhenning_at_[hidden])
Date: 2008-05-01 22:07:42
Hi John,
I have added the necessary this-> to hopefully make the lib compile
with gcc now. Can you pull the latest and try again?
>  any_supported_image<jpeg_tag> result;
>  read_image(fname, result, jpeg_tag())
>
>  gil::apply_operation(result, my_operation)
Ah, I see. Nice idea, I will add it to my todo list.
>
>
>
>  On another note, I dont think you need filesystem to check the extension
>  of the images. You can use the boost string algorithms library (or just
>  use std::string operations).
>
>  bool can_read(std::string filename, jpeg_tag const& ){
>     static const string extensions[] = {".jpg", ".jpeg" };
>     return ::boost::algorithm::iends_with(filename, extensions[0])
>         || ::boost::algorithm::iends_with(filename, extensions[1]);
>  }
>
You're right. This should work, as well. Thanks!
>
>  Also, I beleive some of the image formats can peek at the first few
>  bytes of the file to determine if the format is appropriate. I dont know
>  about non-windows systems, but on some of them this might be the only
>  way to tell. If that is the way image formats are checked, then I dont
>  think filesystem (or string algs) is going to be important.
For now, I believe the file extension will do.
Thanks again,
Christian