Image format with IsPicture

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Image format with IsPicture

Post by jPV »

Could IsPicture() return the image format also in the table with other information? I'd like to check if images I let user select are JPEG or PNG, etc... I have couple cases in my mind where I'd like to use that information. Guessing from the extension isn't reliable always...
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Image format with IsPicture

Post by airsoftsoftwair »

Code: Select all

- New: The table returned by IsPicture() now contains a new field named "Format" which will be set to
  the image's format; this can be #IMGFMT_BMP, #IMGFMT_PNG, #IMGFMT_JPEG, #IMGFMT_ILBM, #IMGFMT_GIF,
  #IMGFMT_TIFF, #IMGFMT_NATIVE, or #IMGFMT_PLUGIN
Post Reply