Image Type Detection?
Image Type Detection?
Hi,
Is there a way to detect the supported image types at run-time? For example, I'd like to check the file being currently processed and ensure it is supported by GdPicture before attempting to process it.
Something like this:
if (gdPictureImaging.IsValidImageType(fileName))
{
... convert to pdf
}
Thanks.
Thierry
Is there a way to detect the supported image types at run-time? For example, I'd like to check the file being currently processed and ensure it is supported by GdPicture before attempting to process it.
Something like this:
if (gdPictureImaging.IsValidImageType(fileName))
{
... convert to pdf
}
Thanks.
Thierry
Re: Image Type Detection?
Hi Thierry,
I'm sorry we do not have such a specific function. In my opinion, the best way is try and load the file.
Regards,
David
I'm sorry we do not have such a specific function. In my opinion, the best way is try and load the file.
Regards,
David
Re: Image Type Detection?
Thanks David.
I'll probably find the list of files GdPicture supports and create a function to check the extension as it will be more efficient and less resource intensive than opening the file. Not perfect but it will do.
Thanks.
I'll probably find the list of files GdPicture supports and create a function to check the extension as it will be more efficient and less resource intensive than opening the file. Not perfect but it will do.
Thanks.
Re: Image Type Detection?
Hi Thierry,
Please create a ticket to our support platform with your license number. I will thus be able to provide the list of raster image format extensions you can load with your license.
I'm looking forward to hearing from you.
David
Please create a ticket to our support platform with your license number. I will thus be able to provide the list of raster image format extensions you can load with your license.
I'm looking forward to hearing from you.
David
Re: Image Type Detection?
Will do. Thanks David.
Who is online
Users browsing this forum: No registered users and 1 guest