I'm finding that loading pictures (jpg mostly) like ...
dim im as image
im.initialize(SourceDir, PicFilename)
... Doesn't always give me valid im.height or im.width. Sometimes, those are null values. The pictures themselves seem to be fine as they can be viewed by several different standard viewers.
Ultimately, I'm creating thumbnails with these images being pulled from an email server. It works for the majority of pictures, but not all.
Any ideas on why some pictures (again, seemingly valid pictures otherwise) give null values when loaded into an Image?
Do I have alternatives to get the heights and widths for those pictures?
dim im as image
im.initialize(SourceDir, PicFilename)
... Doesn't always give me valid im.height or im.width. Sometimes, those are null values. The pictures themselves seem to be fine as they can be viewed by several different standard viewers.
Ultimately, I'm creating thumbnails with these images being pulled from an email server. It works for the majority of pictures, but not all.
Any ideas on why some pictures (again, seemingly valid pictures otherwise) give null values when loaded into an Image?
Do I have alternatives to get the heights and widths for those pictures?