Image Manipulation is making green and pink thumbnails

Using the coldfusion 8 image manipulation we are getting thumbnails that the colors are all green and pink.  This seems to only affect the thumbnails and not the larger resized images.  See screenshot for example.  Any ideas why this is happening or how to fix it?
The functions being used are ImageWrite and ImageScaleToFit.

<!--- Set some defaults used by each image type, unless you override them --->
<cfparam name="jpgQuality" default=".8" />
<cfparam name="defaultInterpolation" default="bicubic" />
<cfparam name="defaultBackground" default="black" />
<!--- Set values for each image type --->
<cfparam name="thumbMaxWidth" default="" />  <!--- leave blank to allow any width (forced to size by height) --->
<cfparam name="thumbMaxHeight" default="60" /> <!--- leave blank to allow any height (forced to size by width, above) --->
<cfparam name="thumbQuality" default="1" />  <!--- number from 0 - 1, 1 being the best --->
<cfparam name="thumbFixedSize" default="false" />  <!--- you MUST set both MaxWidth & MaxHeight to use FixedSize --->
<cfparam name="thumbBackground" default="#defaultBackground#" />  <!--- color of background if fixed size is used --->
<cfparam name="thumbInterpolation" default="#defaultInterpolation#" />  <!--- Interpolation method used for resizing (HUGE performance hit depending on what is used) --->
<cfparam name="normalMaxWidth" default="476" />
<cfparam name="normalMaxHeight" default="324" />
<cfparam name="normalQuality" default="#jpgQuality#" />
<cfparam name="normalFixedSize" default="true" />
<cfparam name="normalBackground" default="#defaultBackground#" />
<cfparam name="normalInterpolation" default="#defaultInterpolation#" />
<cfparam name="zoomMaxWidth" default="670" />
<cfparam name="zoomMaxHeight" default="380" />
<cfparam name="zoomQuality" default="#jpgQuality#" />
<cfparam name="zoomFixedSize" default="true" />
<cfparam name="zoomBackground" default="#defaultBackground#" />
<cfparam name="zoomInterpolation" default="#defaultInterpolation#" />
<!--- Set values for folder paths and the watermark image --->
<cfparam name="originalFolder" default="path to folder for original images" />
<cfparam name="thumbFolder" default="path to folder for thumbnail images" />
<cfparam name="normalFolder" default="path to folder for large images" />
<cfparam name="zoomFolder" default="path to folder for large resized images" />
<cfparam name="watermarkImage" default="" />
<cfparam name="wmXPosition" default="50" />  <!--- value is a number from 0 - 100, 50 = centered --->
<cfparam name="wmYPosition" default="65" />
<cffunction name="genWatermarkImage">
    <cfargument name="ImageFile" required="true" />
    <cfargument name="MaxWidth" required="true" />
    <cfargument name="MaxHeight" required="true" />
    <cfargument name="StorePath" required="true" />
    <cfargument name="FixedSize" required="true" type="Boolean" />
    <cfargument name="Background" required="true" />
    <cfargument name="Quality" required="true" />
    <cfargument name="Interpolation" required="true" />
    <cfargument name="AddWatermark" required="true" type="Boolean" />
    <cfif IsImageFile(originalFolder & ImageFile)>
        <cfset original = ImageNew(originalFolder & ImageFile) />
        <cfset originalHeight = ImageGetHeight(original) />
        <cfset originalWidth = ImageGetWidth(original) />
        <cfset outfile = StorePath & ImageFile />
        <cfset watermark = ImageNew(watermarkImage) />
        <cfset ImageScaleToFit(original,MaxWidth,MaxHeight,Interpolation) />
        <cfset new_w = ImageGetWidth(original) />
        <cfset new_h = ImageGetHeight(original) />
        <cfif FixedSize>
            <cfset normal = ImageNew("",MaxWidth,MaxHeight,"rgb",Background) />
            <cfset ImagePaste(normal,original,int((MaxWidth-new_w)/2),int((MaxHeight-new_h)/2)) />
            <cfif AddWatermark>
                <cfset ImagePaste(normal,watermark,( int(ImageGetWidth(normal)) - int(ImageGetWidth(watermark)) -3),( int(ImageGetHeight(normal)) - int(ImageGetHeight(watermark)) -3) )/>
            </cfif>
            <cfset ImageWrite(normal,outfile,Quality) />
        <cfelse>
            <cfif AddWatermark>
                <cfset ImagePaste(original,watermark,( int(ImageGetWidth(normal)) - int(ImageGetWidth(watermark)) -3), (int(ImageGetHeight(normal)) - int(ImageGetHeight(watermark)) -3) )/>
            </cfif>
            <cfset ImageWrite(original,outfile,Quality) />
        </cfif>
    <cfelse>
        <cfreturn "Image file not an image!" />
    </cfif>
</cffunction>
<cfset thumbError = genWatermarkImage(Filename ,thumbMaxWidth,thumbMaxHeight,thumbFolder,thumbFixedSize,thumbBackground,thumbQuality,thu mbInterpolation,"false") />
<!---One of the images this happened to is attached.  This problem doesn't happen everytime but when it does it is a large group of photos.--->

Similar Messages

  • Pixelated Screen - shimmering green and pink

    I posted this over in the display forum but im not getting much help over there. thought i would post here and get a bigger crowd.
    anyways, on my ibook, the screen is very pixelated. it reminds me of when you put a video card in a pc and there are no drivers installed for it. there is a shimmering green and pink effect all over the screen. mostly in the shadows though.
    i have already tried to adjust the resolution and colors. nothing changes the way it looks. current setting is at 1024x768 with millions of colors selected.
    i took a screen shot and transferred it to my pc and opened it in Photoshop. The screen shot looks flawless and none of the above symptoms are there.
    so is the LCD bad? maybe the inverter?

    If you have the external video adapter, as included with the iBook when new, you could check the non-LCD
    components to some extent by seeing if you can run an external display; and if the images view correctly,
    the internal display has secondary issues that can be further troubleshooted by you or a tech.
    There are some software utilities out there which may work to help use an external display; but I don't use
    them and so can't recommend them. A few were not supported officially, but people used them in iBooks.

  • My ipad screen turned green and pink

    my ipad screen turd green and pink help me plssssss.
    i restart my ipad2 it dosen't work

    Hey jedivan27,
    Thanks for the question. I understand that you are having display issues with your iPad 2 and you have already attempted to restart it. To completely isolate the issue, let's try resetting your device as well:
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/HT1430
    If the issue persists after a reset, let’s see if we can isolate to software or hardware by backing up and restoring your device as new:
    iOS: How to back up your data and set up your device as a new device
    http://support.apple.com/kb/HT4137
    After erasing and setting up as a new device, your device is now in a factory configuration. Test to determine if erasing and setting up as a new device resolved the issue. Content on the device may have caused unexpected behavior.
    If the issue is still present, you may want to contact Apple Support.
    Thanks,
    Matt M.

  • Green and pink Media. Premiere Pro CC v.8.1

    Hi,
    i have a problem with my media.
    i use XdcamHD 422 50i .mov clips.  and one bin with IMX codec.
    the sequece setting is Sony xdcam HD422 1080i
    but two days ago all the media with the IMX codec went green and Pink, audio is still ok.
    in the import panel / Finder ecc. also in Bridge all clips look fine but when they are in Premiere the turn out pink&green.
    i tryed to reimport all IMX based media new --
    to set the media offline and reconect them new.
    delet all reder - and Preview files.
    im using OSX YOSEMITE
    Premier Pro CC 8.1
    XDCAM DRIVER are updated and working.
    does anyone had this problem or know how to solve it???
    thx #
    Stephan
    XDCAM HD 422 50i  . mov Clips works fine.
    XDCAM IMX Clips are all green and Pink.
    in the import window, all clips are looking good.

    HI!
    I´m having same problem with quicktime files from newtek. When imported they are all green.
    I tryed to import in other softwares and looks fine. Even in Premiere CS5 is OK with Maverick.
    I think the problem is Yosemite with CC. Must have some issue with codec orsomething.
    Many people are having problems since yosemite upgrade! Whats going on with codecs?

  • When I plug in the VGA adapter the colors change to green and pink on the screen

    When I plug in the VGA adapter to my new MacBook Air, even without connecting the other end to the lcd projector, the screen colors on the computer change to green and pink

    As Stated above...
    Place the Device into Recovery mode...
    http://support.apple.com/kb/HT1808
    If no joy... Try here  >  DFU Mode

  • HT201210 Why are my ipad colors are all green and pink?

    Why are my I pad2 colors all green and pink?

    Because something is wrong.
    To fix, try:
    - A reset. Nothing is lost
    Reset : Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory settings.
    If still problem that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Videos Showing Green and Pink (Preview and Export)

    I've imported a series of MTS videos. In the timeline - the color is fine. In the Source/Program monitors, they get a weird green and pink overlay. Any thoughts?

    When I converted with Media Encoder to MP4, it still happened.
    After reading all the posts, here's what I did: emptied the Media Cache in
    PP, then downloaded PP '14
    It went away, for whatever reason
    On Tue, Jul 22, 2014 at 10:37 AM, JPellizzi <[email protected]>

  • My iPhone screen turned green and pink and now wont turn on or off and is unresponsive. Tried holding down power/sleep button, tried plugging into itunes, all with no success. HELP!

    I was just playing on my phone when it froze. The screen flashed green and pink then I had to hold down the power button until the green and pink slowly faded away. The phone is completely unresponsive. Wont power on or off, isnt recognized by computer

    Did you also try to connect in recovery mode, explained here:
    iOS: Unable to update or restore

  • IMac (27in, mid 2010, i7 2.93ghz) has green and pink squares on the display

    This is an iMac in a lab with several others of the same model and specs. This is the only one that has been experiencing this issue with green and pinkish/purple squares sometimes showing up on the display. They seem to go away once someone logs on. The longer it sits, the more of these squares appear. I'm guessing it's a video card issue, but i want to make sure before i call it in for service. I haven't been able to run a hardware test on it because it never finishes the preliminary test before running the actual test.

    It seems to take several hours before it appears. So, when it sits for a while, they start showing up.
    That could indicate a heat issue affecting the video hardware. Some things to mitigate heat are:
    1) Clean the air intakes on the bottom of the computer. It's surprising how much lint can accumulate there.
    2) Make sure nothing obstructs the long exhaust air slot at the top of the iMac's back panel. The back of the computer case should be 6-8 inches (150-200mm) from any object such as part of a workstation.
    3) Be sure people are not stuffing books and papers between the workstation and the bottom of the computer.
    4) That model iMac came with disks. Find the one that includes Apple Hardware Test and run it. If you get an error, report it to us. Error codes that include "SNS" indicate a sensor problem. Codes with "MOT" suggest a fan motor is failing or has failed
    5) Review this Apple article to learn how to check if a runaway background process is using too many processor cycle and running up the temps:
    http://support.apple.com/kb/TS1473
    6) Get a temp monitoring utility to see how hot various components are getting. I like Temperature Monitor:
    http://www.bresink.com/osx/TemperatureMonitor.html
    It puts the temps in your menubar so you don't have to invoke Dashboard like some other temp monitors require. Here is what my Mid-2010 27-inch 2.93ghz quad-core i7 reports with Mail and Safari open, and about 16 tabs running in Safari:

  • Quick Time Video Plays Only Fluttering Green and Pink Boxes

    My earlier version of Quick Time ran just fine on my Windows XP Sony Vaio. When I upgraded to the new version of I-Tunes and the new version of Quick Time, my movies suddenly played a video image in a jumbled up series of pink and green rectangles. Audio plays okay. I'm told I have the proper codecs for these files. I uninstalled, downloaded the software again, and reinstalled. This didn't solve it. New downloads from i-Tunes and even the sample movie that came with Quick Time play back this way. Is there someone I can call? Help!

    The problem with Quick Time not to view Video because of DirectX. Try to disable it. Open the Quick Time player on the menu bar click on Edit, down to Preferences then Quick Time Preferences. When you get the Quick Time Preferences window click on ADVANCE then under Video de-select DirectX and select Safe mode (GDI only) that should solve your problems. Good luck.
    Sony VAIO   Windows XP  

  • Fcpx with magic bullet green and pink flash frames

    Hi I'm using fcpx with magic bullet. all recent updates. an imac 3.4ghz 32gb ram 512ssd drive and 512mb card. I keep getting pink and green flash frames whenever i colour grade in magic bullet.
    first 22 secs of project were fine, next day I added to it, flash frames everywhere throughout the entire project. tried everything. is it a bug?
    cheers

    This problem is completely averted, for me (and reportedly most others), by exporting using "Send to Compressor" rather than using any FCPX presets. That is, no flashes or green/purple/upside-down frames show up in the final output.
    I would hardly have believed that the "engine" used in Compressor is different to FCPX - but that is obviously (simplistically) the case.
    This is also some confirmation that the problem is with FCPX - not the plugin.

  • Spltting an image into its red green and blue components

    Hi,
    I need to split an image into 3 images, one the red component of the original image, one the green component, and one the blue.
    Any idea how this can be done?

    Hi,
    something along these lines:
    Robot robot = new Robot();
    // loop: get color for each pixel in image
    Color pixelColor = robot.getPixelColor(x, y);
    int red = pixelColor.getRed();
    int green = pixelColor.getGreen();
    int blue = pixelColor.getBlue();
    // do your stuff with these values
    Cheers,
    Jim

  • Video appears bright green and pink

    I just re-installed OSX and updated installed all the all the latest updates to 10.5.5
    Previously I was in 10.5.4
    Now when I play a DVD, or activate video in iChat or Quicktime the colors are only pink and green. Visualizer in iTunes appears normal.
    any ideas on what could be the issue? I have two separate video cards, the factory install and an ATI X1900 and I get the same affect under either one. All other display operations appear normal.
    Thank you,
    todd
    Message was edited by: Todd Lichtenwalter1

    Todd Lichtenwalter1 wrote:
    Nerowolf,
    I did the pram (command-option-p-r) and then it appeared to fix it. I did another restart and the problem came back. I did another pram restart and the issue remains.
    -todd
    That's interesting. You might try resetting PRAM and then NV-RAM.
    Also check in System Profiler for any diagnostic errors after booting.
    You can also boot using verbose mode, hold down Cmd-V on boot and see if anything relating to monitor appears.
    You can re-read these messages after booting by entering, in a terminal,
    sudo dmesg
    and then enter your password.

  • Screen went lime green and pink - yikes!  How to reset?

    Have tried a hard reset by holding the home key and sleep/start key at the same time, but it doesn't reset.   Still comes back with a lime green screen and whit Apple.. Then pink (light and dark) as highlight and keyboard ...everywhere else.  Poor  video display.  How to fix?

    Basic troubleshooting troubleshooting:
    1. Reset
    Hold the Sleep/Wake and Home button down togther until you see the Apple logo
    2. Restore:
    http://support.apple.com/kb/HT1414
    3. Recovery:
    http://support.apple.com/kb/HT1808

  • Video picture bright green and pink, how do I adjust colour?

    how do I adjust colour / brightness of my video picture

    Thank you Russ, this certainly helps me out a little bit.  It's not made very clear in other places I've seen that you have to click on the keyframe in the middle of the picture.  Throughout most of yesterday I was clicking on the keyframe in the upper right corner and nothing was happening.  But this all still feels kinda limited however especially compared with what I could do in FCP7.  Is this all FCPX has to offer?  Perhaps I don't understand how this works?
    When I click on the keyframe, I get only two choices, linear or smooth.  Yet, the still image still does this ease in and out thing.  How can I adjust that?  Aslo, how can I make constant movement? If I want it to go from picture to picture with constant movement, never starting and stopping, how do I make that happen?

Maybe you are looking for

  • Portal Performance is Very Slow..Pls Help

    Hi to all. Our machine is Sun280R - Sun Solaris 8.. Using Oracle 9iAS 9.0.2.0.1.. Our portal is 9.0.2.0.1 Release 2. All installed in one machine (infs/apps) We have difficulties with the Portal performance. It takes slow time to login, and view the

  • Windows Vista Home Premium 64bit - Not syncing media

    I'm migrating myself from an HP laptop that will sync my Centro contact/addresses/media etc.  The HP runs XP Pro.  I'm moving to a Sony which runs  Windows Vista Home.  And I am able to sync most everything but the media.  None of my pictures/video o

  • Help needed in PL/SQL for updating the column for multiple records

    Hi, I am new to PL/SQL and need some help. What is the most effiecient way to update some field in a table as I may need to update thousands of records. I have a coulmn groupid can have multiple records tied to it. All the records attached to some gr

  • Best practices for cleaning up after a Bulk REST API v2 export

    I want to make sure that I am cleaning up after my exports (not leaving anything staging, etc). So far I am DELETEing $ENTITY/exports/$ID and $ENTITY/exports/$ID/data as described in the Bulk REST API documentation Using a dataRetentionDuration when

  • System error 500

    I am getting this error on logging onto to iFS, I by mistake applied the ACL to all users except Scott to "Private", and i am not able to gain access to server, though it was working fine initially. Please tell me which parameters to be changed in Da