<cfimage> has problem with certain photos
i built photo album website, , it's , running, i'm running problems uploading files.
my album works this:
first, use imagemagick's "mogrify -resize" command cut originals down 1280 width. don't need pics larger this, cuts down on uploading time.
second, ftp pics "uploads" directory on server (that's pw-protected on browser side).
three, log in uploads page, , <cfdirectory> tells me how many pics there are. select album, , click "submit".
this submits page few things:
- it makes sure file not wider 1280px in either dimension, , resizes if is.
- it copies original /fullsize/ folder.
- it uses cfimage make thumbnail (180px width) , places in /thumbnails/ folder
- it uses cfimage again make main viewing pic (800px width), , places in main gallery folder
- it runs <cfquery> add pic database proper album id
- finally, uses <cffiile> delete original uploads folder.
i used upload on 4,000 pics locally on linux machine during development before copying db , pics server. i've uploaded several more pics since gallery has been "live".
my problem (both on live , local) "stalls" , refuses process pics. throws no errors of kind, have no idea what's going on. *stops*.
i've checked permissions, renamed files (the file name column in photos table doesn't allow duplicates, obvious reasons). right now, there 2 things files script stalls on have in common.
- i've used imagemagick resize them locally
- they portrait oriented pics. if have 30 pics i'm uploading, it'll stall on first 1 that's portrait.
now, if open pic in default viewing app on machine (gnome image viewer) , rotate pic 90 degrees right, 90 left , save it, "fixes" , it'll upload no issues.
i know pretty one-off sounding, off in left field problem, figured i'd toss out there in case there's known issue.
i can post code of processing page, works since i've uploaded 4000+ pics it. it's file problem, have no idea wrong. ideas?
More discussions in ColdFusion
adobe
Comments
Post a Comment