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