On Tue, 19 Nov 2002 16:30:07 -0800, in cf-talk you wrote: >I'm using the custom tag imagesize to get the width/height of uploaded >images. I'm finding a problem sometimes with very simple jpeg uploads. >Say the image is 200 x 200. I can upload it to the server and it >remains 200 x 200 (I've checked), but the imagesize tag tells me the >image is 112 x 112. > >If I take the same image into Fireworks and re-export, again as a jpeg >with same 200 x 200 dimensions, this time the imagesize tag reports >the correct dimensions. > >Is there a known issue with either CF and/or something to do with >exporting jpegs -- eg, corrupt image info in the binary jpeg file?
I've written jpeg encoders/decoders from scratch in c++ before, so I can tell you different graphics applications will save jpeg's in many different, but still perfectly legal ways. I don't think I'm familiar with the "imagesize" tag you're talking about, but it feels like it's simply trying to assuming that the width + height values are always in the same fixed place in every jpeg file. They are in the same place in quite a few simply because of the quirk that a lot of apps are based on the same original open-source IJG JPEG code. But many also aren't. The 112 values most likely have nothing to do with the size ... it's just what the tag sees when it looks where it blindly thinks the data should be. --min ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

