I have a program that uses rpic to open image files provided by the user.
I want to give a diagnostic message if rpic cannot read the file
without calling rpic and having it fail. The package PDL::IO::Pic
provides the routine rpiccan to check for a specific type of
image. However, I would have to find out the kind of image first. I
found out that PDL::IO::Pic already has a function 'chkform' that
checks the type of the image according to its magick number and its
extension. Unfortunately, that routine is not exported. Thus, my use
of that routine (as PDL::IO::Pic::chkform) is risky, as it could
disappear in the future. Could it be added to the @EXPORT_OK list,
although not exported by default?
Regards,
Luis
--
o
W. Luis Mochán, | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\
Apdo. Postal 48-3, 62251 | (*)/\/ \
Cuernavaca, Morelos, México | [email protected] /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general