diff scripts/image/private/__tiff_isa__.m @ 31204:86d7c1be75dd

__tiff_isa__: implemented an "isa" function using Tiff interface * scripts/image/private/__tiff_isa__.m: implemented an "isa" function to be used for imformats, using the Tiff interface and independant of GraphicsMagick. * scripts/image/module.mk: added entry for the new function file.
author magedrifaat <magedrifaat@gmail.com>
date Sat, 03 Sep 2022 19:49:43 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/image/private/__tiff_isa__.m	Sat Sep 03 19:49:43 2022 +0200
@@ -0,0 +1,8 @@
+function tf = __tiff_isa__ (filename)
+    tf = true;
+    try
+        Tiff (filename);
+    catch
+        tf = false;
+    end_try_catch
+endfunction
\ No newline at end of file