Cfimage and crop with direct links

Hello,
I need some advice..
I want to have users reference images from my site but only certain sections (IE: http://somedomain.com/getimg.cfm?ID=123&section=1).  Below is the code I have but it only outputs a variable like coldfusion.image.Image@174e3a9 rather than the actual image.  I understand cfimage has a writeToBrowser action but that outputs html source which wont allow my users to have a direct link.
<cfprocessingdirective suppresswhitespace="yes">
<cfimage source="d:\test.jpg" name="myImage">
<cfset ImageCrop(myImage,0,0,534,474)>
<cfcontent type="image/jpeg" >
<cfoutput>#myImage#</cfoutput><!--- does not output actual image --->
</cfprocessingdirective>

You can also prevent direct links (although not fool-proof) by checking the HTTP_REFERER at http server level, using mod_write or isapi_rewrite (or similar). You can easily find examples for this by searching the internet.
About cfcontent then... the correct usage would be <cfcontent variable="#myImage#" type="image/jpeg"> , but since cfcontent does not support a ColdFusion image object, but rather variables or binary objects read by cffile, save the cropped image to a disk with the cfimage tag, then read it using cffile.
Better yet, if you are using ColdFusion 9, use the ram://-drive instead of physical disk for less I/O load.
- Fernis - fernis.net - ColdFusion Developer For Hire

Similar Messages

  • Hello, i use premiere pro cc and i would like to uplaod my sequence in speedgrade with direct link but it's not available. I can see the option but it's not clickable, somebody knows why ?

    Hello, i use premiere pro cc and i would like to upload my sequence in speedgrade with direct link but it's not available. I can see the option but it's not clickable, somebody knows why ?

    Oh i'm not sure they are on same, i downloaded speedgrade this morning and i didn't upgraded premiere so it's maybe this ! thanks i will try it and let you know

  • OIM 11g - Email Notification with direct link to Approval Task Details

    Hi,
    We wanted to send email notifications to approver with direct link to the approval task details screen from which the user can either approve or reject the request. In OIM 11g OOTB Notification templates such as Request Creation contains the direct link to Request Detail screen which is something like
    http://localhost:14000/oim/faces/pages/Self.jspx?OP_TYPE=LOOKUP;E_TYPE=MY_REQUEST&T_ID=65
    Wondering if there is something similar for Approval Task Details screen as well.
    Any kind of help or suggestion is greatly appreciated.
    Thanks,
    Deepa

    If at all you cannot get the direct link for approve/reject then try the actionable email from SOA. Once you have that configured the emails gets approver/reject links so that approvers can directly approve/reject the task from email. If that works for you then you can look at the format of those links in the email and deduce what you need the url as.
    HTH,
    BB

  • Mask placement bug with direct link - fix?

    Today I digged around SG and can see that the issue still stands. Looks like SG works with input data and displays the PP output, so all transformations done in PP are transferred to the masks resulting in offsetting and scale differences.
    I have read couple of posts that its a "known" issue, but those posts are like year old. So my question is - is this gonna be fixed or do we have to re-render all our footage to 1.0 PAR and never transform anything before grading process if we wanna use PP and SG in direct link?
    It seems to me as not a big deal ti trace the transformations in PP and feed the numbers to SG so the offset is compensated for...?

    well, PAR is one thing, but transformations is other thing. It is really hard to imagine editors working without touching their materials in positoning / scaling  sense. All of us have to do it time to time... as I wrote to Jesse, we can work around this by nesting sequences in PP, but its just seems a bit strange that this is not taken care of.
    I still dont get why it is not possible to tell SG: ok - there is transformation x+150 on video in PP, so when creating a mask, move it -150 px on X axis...and with PAR its the same - par 2 = 50% mask scaling on the X axis. I am not a software developer, but I know some programming and these offset corrections are kinda classic at least in what i used to do before moving to editing (flash apps). But its just an impression, dont wanna look like ********* ., theres probably more to it than this.
    Anyway - the main question remanis - is this gonna be fixed? We are in process of updating equipment in our office so I dont wanna get piece of software that has major issues like this.

  • Speedgrade crashing with direct link

    i am working with premiere pro cc latest updated version ,editing 4k footage when i am using the direct link to speedgrade it is crashing not everytime but many times,what is the best solution to rectify this problem......
    my machine details is
    windows 7,i73930k,gtxtitan,p9x79pro,32gb ram,sata 3tb harddisk

    Hi Patrick, Thanks for ur reply n nice talking with u,i am working for a feature film and my project setup is 2k(it is just for edit my final output is 4k) and working with 4k ( r3d source files) with scale to fit option in premiere, i am using 1/4 resolution to playback and 1/2 is for paused resolution,when i am trying to go speedgrade with direct link option it is crashing on startup sometimes it's working and many times not working,plz give me the best settings to overcome with this problem,thanks.
    windows 7,i73930k,gtxtitan,p9x79pro,32gb ram,sata 3tb harddisk

  • Hi! I've been using Goldmine contact management software for many years and syncing with Companion Link successfully, then ITunes to the IPhone. Suddenly, my IPhone is not recognized and won't sync. I see a message telling me to dock the phone? Any ideas?

    Hi! I've been using Goldmine contact management software for many years and syncing with Companion Link successfully, then ITunes to the IPhone. Suddenly, my IPhone is not recognized and won't sync. I see a message telling me to dock the phone? Any ideas? Thanks for any assist!

    Hi Ken,
    Dennis here from westport. I too am a goldmine user for many years and would love to know how you sync.
    I am looking at a product called wmobile, but may be problematic on my current system.
    thanks for any help...

  • First Day With Adobe SpeedGrade CC with Direct Link

    I thought it would be interesting to share my first day using the new Adobe SpeedGrade CC with everyone. Most would be embarrassed to do this, not me.
    This is NOT a tutorial, but more of a way to show you what I am struggling with and what I like. So if you are having your first day with this program you might run in to similar items.
    Perhaps even a product manager from Adobe might watch this and help him what they should work on next.
    Issues I had:
    Where are the Curves adjustments?
    How do I sharpen an image?
    Can you use the tracker backwards?
    Why didn’t my track work?
    Playback at 10fps (not real time with my Monster Computer)
    How do you blend layers?
    How do you zoom into the timeline?
    Things I love:
    Doesn’t crash like Resolve
    DIRECT LINK!!!! Love it!
    2 up and 3 up for shot matching.
    No more XML and EDL!!!!

    Dave,
    I'm basically a noob here too ... only been working with this for what, 5 months? 
    Yea ... would LOVE the option to switch to a curves-based control, one each for luminosity/R-G-B at the least. I've put in a feature-request for that, as have apparently some others. Maybe next year in ... oh well.
    Also ... you might have noted, there's no skin line in the vectorscope! Ridiculous, and that's ALSO been feature-requested by people ... again, maybe next year in ... oh well.
    Still ... but dang this program does work fast in concert with P-Pro as your NLE. One bit of advice. In a P-Pro/Sg/Ae workflow, the link from/to P-Pro and Speedgrade works perfectly well both ways. HOWEVER ... your Sg grades do not come into Ae if you send the project from P-Pro to AfterEffects. Now ... if you save your P-Pro projects with it's Sg grades ... then open Ae and use its Dynamic Link feature to pull a P-Pro project into Ae, your grades from Sg come in just fine thank you.
    And anything you do in Ae comes into Sg on a different layer that you aren't allowed to 'touch', so you can do fx work afore grading and see how the footage looks including the fx, but you can't touch the fx layer of the timeline (other than to turn on/off visibility in the monitor) to do anything to it.
    Still ... easy workarounds, NO time to transcode/export/import ... glory hallelujah!
    Neil

  • SpeedGrade crashes with Direct Link

    I have been trying to direct link for the last few months to SpeedGrade with no success as it crashes when direct linking. If there is blank space at the start of the sequence  it loads but crashes as soon as you try to move the cursor which jumps onto a clip. It never displays a preview of the video before crashing. I've tried it with various video codecs (ProRes, h.264 and MTS files from a Sony FS700) at 1080p but it seems to crash on anything I've throw at it.
    Speed Grade does not crash when starting a new SpeedGrade project and manually adding clips but unfortunately all my original files at present are MTS which SpeedGrade can only open via Direct Link.
    Any ideas on how to solve this issue? Let me know if you need more information.
    Running version 7.2x34
    Windows 8.1 64bit
    Computer specs see http://www.dell.com/us/p/xps-27-2720-aio/pd?oc=fdcwlp1397&model_id=xps-27-2720-aio

    Thanks for the tip ALLENT, but there's no plugins installed.
    ALLENT wrote:
    Do you have NEAT VIDEO (de-noiser) or FXfactory plugins install on your machine (for Premiere Pro or AE).  I had the exact same issue... here is an excerpt for the FIX (from NEAT VIDEO) if you have NEAT VIDEO De-noiser installed somewhere on your machine.  It 100% worked for me!! 
    Yes, we also received some messages about that. We are currently helping Adobe to find a way to make Speedgrade work properly. It is that recent update of Speedgrade that triggered the problem.
    The simplest solution for now (for the Mac version of Premiere and Speedgrade) is to move (not copy but move) Neat Video plug-in (alias) from
    /Library/Application Support/Adobe/Common/Plug-Ins/7.0/MediaCore
    to
    /Applications/Adobe Premiere Pro CC/Adobe Premiere Pro CC.app/Contents/Plug-Ins/Common/

  • I want to eliminate or control popup windows that have no relevance and start with "open link in new window" . How do I control or eliminate. It is a nuisance.

    When I am searching the web and click on an item, I get a pop up window that contains 6 choices beginning with "open link in new window". Most of the time this a nuisance and I want to get rid of it, but it follows me all over the page and keeps popping up when I click on the same item again. If I don't want to use it, how can I make sure it doesn't reappear?
    Also, another question. Firefox keeps asking me to upgrade to Firefox 3.6.19, but when I try, it will download. What gives? I have a Mac Pro with OSX version 10.6.7.
    Thanks,
    Lloyd Frohreich
    [email protected]

    It sounds that you are opening the right-click context menu, maybe by pressing the mouse button for too long.
    See:
    * http://kb.mozillazine.org/ui.click_hold_context_menus

  • Grading Layers with Direct Link

    As the grading layers can not be created if I use the direct link for my project from premiere to speedgrade. Can I create 3-4 adjustment layers in premiere pro and then send my project to speedgrade and use my these adjustment layers as regular grading layers in speedgrade?

    Yes, that is correct, and at the moment is the only way to use grading layers in Direct Link mode.

  • Scale and Crop with Image Alchemy

    Hello,
    We're using Digital Asset Managment with Image Alchemy for the conversion engine. Does anybody know how to configure a rendition set that scales and crops an image without distortion? So if you check-in a 1000x1500 pixel jpeg, it could scale it down and crop it to exactly 100x100 pixels.
    I've been looking through the Image Alchemy documentation, but haven't found this example yet.
    Thanks
    -Jason

    All you need to do is define an "ImageAlchemy" variable inside the "ImageManager_NameValues" ResultSet, DAM automatically knows when to use it for the rendition info. But instead of pointing to the ImageAlchemy executable file, I point to my script. For my conversion ResultSet's extEngine, I refer to an "ImageMagick" variable instead.

  • Keithley 2000 and 7002 with trigger link

    Hello!
    I am writing an application for the 2000 DMM and a 7002 switch system. The instruments are set up with trigger link. What I want to do is simply to load a scan list to the 7002, scan and read back the results from the 2000. Here is what I have so far in terms of SCPI (I have looked at the Keithley LV drivers but I think they complicate stuff + there are no high level functions for trigger link setup included):
    DMM *RST
    SW *RST
    SW Open
    SW Scan (@2!1:2!40)
    SW :TRIGgerOURce TLINk
    SW :TRIGger:TCONfigureROTocol ASYNchronous
    SW :TRIGger:COUNt 40
    SW :ARM:LAYer2:COUNt 1
    DMM :TRIGger:COUNt 40
    DMM :TRIGgerOURce EXTernal
    DMM :INIT:CONT ON
    SW :ARM:LAY1OUR IMM;COUN 1
    SW :ARM:LAY2OUR IMM
    SW :INIT
    DMM :TRACEATA?
    Please advise,
    Stefan

    hi morgue!
    I am doing a program like your, but with Keitlehy 2001.
    To make the syncronization you wrote just these lines? I am doig this in labview, with the programs found in the drivers given by keithley but is not working properly. When I put the triger link, it scans and show just the first measure.
    Do you still have this programm?
    thank you 

  • Express and eMac with D-Link USB Adapter

    I went down to my local Apple Centre to get an Airport Card for my eMac (700mhz). He said they didn't have any but recommended I buy a D-Link USB Adapter (802.11g/2.4ghz wireless) to connect to the Internet via Airport Express. But I can't get the Mac to recognise it - when I use the Airport Assistant it says I have to connect via Ethernet as there is no Airport card Installed. Any ideas where I can find a step-by-step installation guide? Or any help here would be great!
    Thanks
    Ben

    BenCollison, Welcome to the discussion area!
    Unfortunately the drivers required for these USB wireless adapters frequently don't work well with Mac OS X. Many people never get them to work properly. Some people find the magical combination and get them to work.
    The best solution is the correct AirPort card.
    The next best solution is an Ethernet wireless adapter. These require no drivers and therefore work with any Ethernet device. Examples of Ethernet wireless adapters are the Linksys WET11, Linksys WET54G, and the Buffalo Technology WLI-TX4-G54HP bridge.

  • Set AOI and Binning with Camera Link

    Hello together,
    I trying to set the AOI and the Binning.
    Please see the attached VIs. If I choose Binning 2x or 4x, the following error occured:
    Error -1074397150 occurred at IMAQ Snap.vi
    Possible reason(s):
    NI-IMAQ:  A timeout error occurred while waiting for the specified event.  If waiting for an image, verify that all video data is acquired within the timeout period.  If waiting for a signal, verify that the signal assertion occurs within the timeout period.
    Does anybody has a idea, how I can set the AOI and the Binning?
    Thank you very much in advance.
    greetings zaepfle 
    LV2012
    Attachments:
    VieWorks_SetCameraAttribute_AOI.vi ‏50 KB
    VieWorks_SetCameraAttribute_AOI1.vi ‏50 KB

    Hi,
    thanks for your answer.
    The attribute Binning is in the MAX, because I edited the camera file (*.icd] with the NI Camera File generator (see MAX_Binning.png). If I chosse the correct imagesize (MAX -  tab Acquisition Parameters) and set the Binning (MAX - Camera Attributes), it works. I can switch between 0x, 2x, 4x Binning without an error message. But unfortunately I can do it with the LabVIEW VI (see attached VI). I will try to describe the process with the attached LV program:
    - run program
    - default resolution 6576x4384, 0xBinning: all OK
    - set resolution 3288x2192, 2xbinning: all OK
    - set resolution 1644x1096, 4xbinning: all OK
    - set resolution 3288x2192, 2xbinning: the resolution (1644x1096) remains
    or
    - set resolution 6576x4384, 0xbinning: the resolution (1644x1096) remains
    Why the resolution doesn't go back?
    How can I get the frames per second?
    " Please run the VI and see if an error occur when you try to set Binning in your camera."
    It doesn't appear a error message.
    I hope we can find a solution.
    greetings zaepfle
    Attachments:
    VieWorks_SetCameraAttribute_AOI_inside_Errorhandling.vi ‏50 KB
    MAX_Binning.png ‏101 KB

  • When I click on a link in another application, Firefox opens up two windows, one with my home page and one with my link. How do I turn this off so that I only get one window

    Mac OS10.6.4

    That is this bug:<br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6b opens two windows when opening external links
    (please do not comment in bug reports)

Maybe you are looking for