Image Type Detection?

Example requests & Code samples for GdPicture Toolkits.
Post Reply
tfierens2
Posts: 4
Joined: Tue Jan 09, 2018 12:56 pm

Image Type Detection?

Post by tfierens2 » Fri Jan 12, 2018 6:10 pm

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

David
Posts: 66
Joined: Mon Feb 08, 2016 3:12 pm

Re: Image Type Detection?

Post by David » Tue Jan 16, 2018 9:25 am

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

tfierens2
Posts: 4
Joined: Tue Jan 09, 2018 12:56 pm

Re: Image Type Detection?

Post by tfierens2 » Tue Jan 16, 2018 1:27 pm

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.

David
Posts: 66
Joined: Mon Feb 08, 2016 3:12 pm

Re: Image Type Detection?

Post by David » Wed Jan 17, 2018 9:55 am

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

tfierens2
Posts: 4
Joined: Tue Jan 09, 2018 12:56 pm

Re: Image Type Detection?

Post by tfierens2 » Wed Jan 17, 2018 11:04 am

Will do. Thanks David.


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest