doing a quick check
http://www.aspjpeg.com/man
I think that I might have a look at using this in my project.
Carrzkiss
Main Topics
Browse All TopicsI currently have a working version of ASPJpeg that allows me to take an image (already uploaded to the server) and create a thumbnail version of that image and store it in a separate folder on the server. For jpegs, everything works great. However, I need it to work for gif images. Currently, if I try to resize a gif that has a transparent area, the current setup doesn't handle the transparency well. I have read at Persits software that the ASPJpeg function now has gif capability but the gif management object is handled separately. In other words, I need to know that I am working with a gif image before using it.
My problem then is how to identify whether the image that I want to resize is a jpeg or a gif. As a reminder, I have already uploaded the image to the server and that can't change. And, after identifying whether it is a jpeg or a gif (the only two types of image that I allow), then to set up the code to handle jpegs using the 'regular' ASPJpeg method and the gifs using the special gif management that comes within the newest version of ASPJpeg.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
doing a quick check
http://www.aspjpeg.com/man
I think that I might have a look at using this in my project.
Carrzkiss
The link above http://www.aspjpeg.com/man
I am looking for a solution to help me work with it, when using jpegs and gifs. Looking at the extension might work but it would be preferrable to actually determine what type it is (someone might label it wrong)
I found your sugestion very helpful as you helped remind me of the big picture. I was initially stuck on the idea that the function had to be within the Gif object management of ASPJpeg. Although the ASPUpload has such a function, ASPJpeg doesn't. I ended up writing up the code as you suggested to look at the extension of the image before passing it on to the ASPJpeg/gif management and got it to work. I really appreciate your response because otherwise, I could still be spinning my wheels!
Business Accounts
Answer for Membership
by: BadotzPosted on 2009-10-31 at 01:10:42ID: 25708848
Can't you look at the file extension to make the determination? I mean, "image.jpg" is a JPEG, but "image.gif" is a GIF, right?