Member
Member
Celcius   2011-01-26, 23:48
#1

I am looking for a call that will return the image type: jpg, png, gif, bmp, and so on.

getBareImageType()

Or something like that. Does that exist?

Member
Member
sbillard   2011-01-27, 00:03
#2

getSuffix(imageobj->filename)

Member
Member
Celcius   2011-01-27, 00:07
#3

Didn't work for me:

Parse error: syntax error, unexpected T_STRING in ... on line 75

EDIT:

Actually this is the error I am getting now:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ... on line 75

Member
Member
Celcius   2011-01-27, 00:31
#4

I did a search on this call:
getFullImageURL();
to match it up with .jpg and so on, to determine the filetype.
It's a pretty hackish, but it works for now.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.