clean up <image>
parent
970953be1f
commit
46bfb5c8ea
|
@ -6,8 +6,7 @@ io.pathnames ;
|
||||||
IN: images
|
IN: images
|
||||||
|
|
||||||
: <image> ( path -- image )
|
: <image> ( path -- image )
|
||||||
normalize-path dup "." split1-last nip >lower
|
dup file-extension >lower {
|
||||||
{
|
|
||||||
{ "bmp" [ bitmap-image load-image ] }
|
{ "bmp" [ bitmap-image load-image ] }
|
||||||
{ "tiff" [ tiff-image load-image ] }
|
{ "tiff" [ tiff-image load-image ] }
|
||||||
} case ;
|
} case ;
|
||||||
|
|
Loading…
Reference in New Issue