Get image type without parsing filename
Closed this issue · 1 comments
kjlaw89 commented
While I can parse the filename to get the image type in most cases, there may be times where the is no extension on the file. During these times it would more useful to get the image type based on the kind of image loader that was used by Gdk.Pixbuf. This will be more necessary for saving images than loading them.
kjlaw89 commented
Use: Gdk.Pixbuf.get_file_info(FullPath, out width, out height);
Was on the right track before, but the FullPath file that I passed in had "File:///" in the beginning, which would keep it from loading the image for correctly.