Hi Paul I had similar problems and blogged about it here:
http://www.garyrgilbert.com/blog/index.cfm/2007/8/8/CFIMAGE-Part-4-Remote-Images


The problem seems to be only with large images, smaller ones I didn't give
me a problem.  If you try to pull a smaller image from flickr they tend to
discard all the exif data on all resized images only the original has the
data. The problem is most people tend to upload the largest size possible
(or perhaps its only me).

I tried to read the image from the url write it to disk and then read the
image back from disk but you end up losing the exif data when you do that
(which I would think would be a bug, as well as the "Exception occured in
JPG processing. segment size would extend beyond file stream length" error).

I then decide to try something quite different :)


I used <cfhttp method="get"
url="http://farm1.static.flickr.com/97/232021390_ad47422845_o.jpg
" path="c:\"/>  Which got the image and wrote it to disk with the original
name with the exif data intact.  I then could read the image in using
<cfimage source="c:\232021390_ad47422845_o.jpg" name="myimage"/> and get the
exif data without problem and output it. <cfdump
var="#imageGetExifMetaData(myimage)#"/>

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289703
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to