[cl-pdf-devel] Adding read-data paramter to read-jpeg-file and read-png-file functions

Marc Battyani marc.battyani at fractalconcept.com
Wed Mar 12 20:50:26 UTC 2008


Dmitriy Ivanov wrote:
> Hello folks,
>
> I am thinking of using some PDF functions with a simple site content
> management project. They could determine just the image size from the file
> header without reading the whole data.
>
> It would nice equipping these functions with the read-data key parameter,
> i.e.
>
> (defun %read-jpeg-file% (filename &key (read-data t))
>   ...)
>
> If the :read-data argument got the explicit false value, the functions
> read-jpeg-file and read-pnd-file returned an instance of bitmap-image with
> null data.
>
> Any objections?
>   
It's ok for me though I agree with Gary that it's better to invert the
flag with a key arg like :header-only (BTW :read-header-only seems
redundant as it's already a read function :)
> BTW, is anybody aware of a lisp code for resizing JPEG images?
>   
cl-gd?

Marc





More information about the cl-pdf-devel mailing list