Save As PNG Adds Hard Transition to Gradient

I have an image that I have created which includes a gradient with a soft transition from the light tone to the dark tone. When I save as PNG, the resulting image displays a hard transition to the gradient. How do I create a PNG image which maintains the subtlety of the gradient?

Well, I found a setting in the Save for Web dialog where the gradient doesn't show as a smooth transition:
But that's only in the Save for Web preview window -- using the browser preview button or saving the file shows a smooth transition....
Ken

Similar Messages

  • Save As PNG script

    Hello,
    I'd like some help with this script if possible
    I wanted to save my open file to PNG format in the same location with the same name. I managed to do that with the scripts below.
    This is a script I found on the forum:
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path.parent);
        }catch(e){return;}
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + "_bump.png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new ExportOptionsSaveForWeb;
    pngOpts.format = SaveDocumentType.PNG
    pngOpts.PNG8 = false;
    pngOpts.transparency = true;
    pngOpts.interlaced = false;
    pngOpts.quality = 100;
    activeDocument.exportDocument(new File(saveFile),ExportType.SAVEFORWEB,pngOpts);
    And this is how I modified it (so that it saves the file in the same folder and doesn't add any suffix to the name; also changed to save as PNG instead of using save for web):
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path);
        }catch(e){return;}
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + ".png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 9;
    pngOpts.interlaced = false;
    activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);
    [b]My problem:[/b]
    I don't know what's happening when I try to save a file just created (never saved yet). I thought I would get the Alert message but it doesn't seem to be the case (maybe the alert message in the code is related to a different condition?)
    I would like to have a default folder/path in the code so that, if the file hasn't been saved yet, it would be saved in the specified location.
    If anyone could do it I would really appreciate it!
    Thanks

    did not get that far.... Your catch ended the script without a notice to you. Try the changed line below in the catch.
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path);
        }catch(e){alert(e); return;}   //Let the user know about the problem
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + ".png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 9;
    pngOpts.interlaced = false;
    activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);

  • Trying to save a png for web, and trnsparency is not working, i have never had this problem before

    I am trying to save for web, a png with a transparent background, and even though I clicked the transparency check box, it is still producing an image with a white background, when exporting the png the transparency works fine, so I know it has nothing to do with the layers. Help!

    b,
    I believe it is time for the list. Hopefully, it is one of the easy ones at the top; 5) is probably irrelevant for this case.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html
    External media: It is always recommended here to open/save from/to own hard disk, and to copy from/to networks and removable media. You may be lucky (for a while), but the chances of file corruption and other unpleasantnesses are immensely greater when you use anything but the harddisk, and it is better to be safe than sorry.
    In addition to the (far greater) risk of file corruption, some issues are mentioned here:
    http://helpx.adobe.com/illustrator/kb/illustrator-support-networks-removable-media.html

  • How can i add a transition to video when using pinned audio without loosing sync

    Everytime i try to add a transition to my video after adding audio from an external source the audio becomes unsync,( it doesn't matter if i pinn the audio or not) any solutions or worked around?
    I'm using Imovie 11.

    Try this...
    Click EDIT/TRANSITION OVERLAP/HALF. This will maintain project duration.
    Normal transitions take half the frames they need from each adjacent clip.
    If you choose HALF, it will take the frames needed for the transitions from the unused portion of your event clips. For this to work correctly, you will need to have unused frames available in each clip. If your project clip uses the frames all the way to the beginning or end of the event clip, there would be no frames to borrow. You also need to make sure that there is no embarassing footage in the unused frames that will be now used in the transitions.  If you carefully edited out Aunt Judy picking her nose, these frames of Aunt Judy may show up in the transition, if they are adjacent to a project clip with a transition.
    There are good diagrams explaining this in iMovie/Help.

  • How can i backup my iPod Touch 4g and save my apps onto a new hard drive without having to save onto the current hard drive first?

    How can i backup my iPod Touch 4g and save my apps onto a new hard drive without having to save onto the current hard drive first?
    My current hard drive is filled up and i'm going to buy a new, bigger hard drive. How can i change the save and backup destination for iTunes so i can backup and transfer my purchases(apps) onto the new hard drive? Without having to backup and save my apps onto the current hard drive because there's no space left on it. Thanks!

    have you tried following the steps given here on the apple's knowledge base site may be they can help you
    http://support.apple.com/kb/HT1414
    here is a video from youtube as well
    http://www.youtube.com/watch?v=wH_1qkHkZi0
    also this tutorial
    http://www.imore.com/how-to-setup-backup-restore-update-use-icloud

  • I have a band video that I want to edit. In iMove 09, I could clip to crop or add a transition or both without altering the audio. In iMovie 11, the audio lower or drops out when I clip for and use a transtion. Is there a setting to preven this?

    I have a band video that I want to edit. In iMove 09, I could clip to crop or add a transition or both without altering the audio. In iMovie 11, the audio lower or drops out when I clip for and use a transtion. Is there a setting to preven this?

    Thanks for that info! Even in my time answering questions on iMovie Discussion Group, I never had a good understanding of when and how Optimize Movie came into play. I always would import as Optimized and Large Size and figured that was good enough. But knowing you got much, much more flexibility doing it the way you describe gives me a much better understanding of the different routes you can take into the Event Library.

  • Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking

    Is there any way of exporting a clip (example 1 hour) into 4 seperate 15 min clips at the same time? Or does anyone have any ideas along the same lines to save time? Add my skype baconhousevidz if you can help or are unsure of what im asking
    thanks everyone

    BaconHouseVidz wrote:
    … at the same time…
    in hope to speed things up?
    no, no effect.

  • Why is it, if i have one video clip in the timeline, i can't just add a transition at the end of that solo clip to fade to black!?! please help!

    hey there, so im making a video for a family event..
    i drag in an audio clip all of a sudden this becomes the be all and end all, and i want to sync some vid clips to that audio track, so let's say i drag in a 10 second video clip, at the end of the 10 seconds, i want to add a transition to fade to black.. i go to the transition window.. choose the cross dissolve or fade to colour, but it will not allow me to drag it on that video clip.. it always ends up on the audio track. this bloody application is so confusing compared to final cut. please help!

    Ahhh, now I see the problem, Grasshopper.  Problem is, we are all Grasshoppers, here.
    Yes, that little piece of info is critical. I'd say the biggest difficulty with FCPX is the whole new language.
    If I read you correctly, your Audio is in the Main Storyline (Track 1 in plain old Editorese). This makes anything else you add (above or below) a "connected clip", which we can no longer think of as "Track 2" because Jobs sez so. So, yes, you cannot just add a transition to either end of a connected clip.
    No argument with Tracy's solution, because I haven't seen any other general solution presented for any attempt to treat connected clips as the main storyline.  And, of course, when they were "track 1" and "track 2", you could.
    An alternative solution, however, is to highlight the connected clip and press Ctrl-V to bring up the Video Animation Editor.  Click the "reveal button" for Compositing: Opacity (bottom, right).  Once open, there is a "fade handle" to the right top.  Drag it left for however much fade you wish.  (there is one on the left as well, but you were only talking about a fade-out.)
    A second alternative, perhaps for future projects where everything keys on audio, may be to create a Gap clip (used to be called slug) in the primary storyline before ever dropping in the audio.  Then you can add video to the main story line and modify it without having to go thru hoops to do the simplest thing.

  • [SOLVED] GIMP is unable to save an PNG

    Hello,
    when I try to save an PNG within GIMP I get the following message:
    Saving '/home/alex/test.png' failed:
    Error while saving '/home/alex/test.png'. Could not save image.
    This is my commandline output:
    libpng error: known incorrect sRGB profile
    (file-png:5692): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
    I reinstalled gimp and deleted my profile, but it didn't work.
    Does anyone have the same problem?
    Greetings
    Alex
    Last edited by oelfe (2013-05-28 13:08:55)

    I've been having the same problem for a while now, since the libpng update a couple of weeks ago.
    The day before the update, I was able to open a png, apply changes to compression, interlacing, etc., and export it to the same filename, overwriting the original. (Not the best workflow, I know)
    After the update, the export would just simply blank out (0KB) the original file and give the same error message.
    libpng error: known incorrect sRGB profile
    Here's an example of a png file that does not work - https://dl.dropboxusercontent.com/u/937 … rabian.png (107 KiB)
    My workaround was to convert the colour profile to Adobe RGB, open it in Gimp and convert it back(?) to sRGB.
    It doesn't seem to happen with every png though, just mostly the ones that I needed for actual work on a website (they are all from the same graphics guy).
    Last edited by adrianx (2013-05-27 21:22:42)

  • Set up to save directly to external Hard Drive so cannot have separate 'back up'I now want to reverse i.e save to internal Hard Drive and 'back up' on external 'hard Drive'. Please advise me how to do this.

    Macbook Air 13 inch purchased October 2013. set up to save [mainly photos] to external 'hard drive' i.e. not saved to internal hard drive. Cannot find easy way to create 'back up'. Please advise how I can reverse i.e save directly to internal 'hard drive' and 'back up on external 'hard drive'

    For backing up your data I recommend that you use Time machine:
    http://pondini.org/OSX/Home.html
    rob at the orchard wrote:
    save directly to internal 'hard drive'
    When you import images or create other data files, file them in the appropriate places on your internal drive, don't delete them and let Time machine back them up.
    Ciao.

  • I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    This is the Microsoft forum site that parallels what Apple has:
    Office for Mac forums
    It's not uncommon for MS employees who work with the Mac side of the business to help there. All in all a useful resource for Office:Mac

  • How do i save raw images on hard drive

    after i have worked on a RAW file how do i save it to my hard drive for future transmission as a RAW file?

    harlemflash wrote:
    after i have worked on a RAW file how do i save it to my hard drive for future transmission as a RAW file?
    No sure I understand your question but in PSE you can save the file in almost most file formats from the editor window by going to:
    File >> Save As
    If you want to send the file to somebody who can edit it in their copy of PSE then you should save it as .psd  or .pdd format
    Hope this helps.

  • Screenshots save as png not pdf

    Screenshots (using shift+apple+4) save as png files instead of pdf.
    Png blows; they're fuzzy, unreadable and generally makes the handiness of screenshot a waste of time
    Someone suggested using the new GRAB feature but it's no better.
    Anyone know how to get a fast, crisp screenshot that is actually usable.
    I'm using CS3 Mac OSX v10.5.2
    BRING BACK SCREENSHOTS AS PDF....PLEASE!

    Linda;
    There's a great maintenance app called Onyx: http://www.macupdate.com/info.php/id/11582
    Once you install the software, open Onyx and under the Parameters menubar option, you will see on the right hand side an option called "Screen Capture Format". There you can select almost a dozen formats, one of them being PDF. Save the setting, close the application and you should be able to save all your screen capture shots in PDF format. This app is free. Cheers.

  • How do I save a PNG file with an alpha channel in Photoshop CS5?

    I have a PNG file created in Photoshop and I need to save it with an alpha channel for web purposes. I tried 'Save for Web & Devices' and selecting the Transparent box. Then, after saving, when I select 'get info' for the file it says there is no alpha channel. I'm stumped I can't seem to create an alpha channel from within Photoshop while I'm editing. Help!

    If you save as a 24bit png with transparent checked photoshop will save the png with transparent background (ie alpha transparency).  The png will appear transparent in a web browser.

  • Save as png and not psd setting?

    hi all,
    i am a long time user but have not spent enough consistent time to avoid some very bad habits. i thought i would take some time to see if i can fix some of these. apologies for the multiple posts today.
    anyway, i am sometimes in a situation where i need to save images as png at a certain size or something for a website (or just because i like to save out as png) and in many cases i am not using any optimizations in psd files.
    is there a way to have photoshop default to Save As png?
    right now i think i have to do a pulldown every time i want a png and when i am trying to do some kind of "batch processing" i am getting a bit of carpal tunnel with all my clickthroughs.
    also, any tips on where to read up on optimizations or built in batch functionality in photoshop would be great. i have been using Preview for the mac and some of the functionality there (convert all to png, resize all to XX etc, etc) is really, really great.
    TIA

    Ifanview will let you batch convert to PNG.  I've not actually used it in that respect, so can't say what options you get, but it usually does a stand out job of everything, and it's free.  Windows only AFAICT
    http://www.irfanview.com/

Maybe you are looking for

  • IPhone 3G OS 3.1.2 not connecting to Exchange 2003 consistently

    I have... iPhone 3G OS 3.1.2 Outlook 2007 Microsoft Exchange 2003 My problem is that I have successfully set up my exchange account on my phone and all of my folders show up, however 9 times out of 10 when I go into my inbox it will sit and think and

  • Transferring from PowerMac to Mac Pro

    Hi All- Couple of questions. My beautiful Power Mac has finally become out of date - for my business at least - though I plan to use it for personal use. Today I purchase a Mac Pro and I'm currently installing software, etc. I want to wipe clean and

  • Where are application license keys stored?

    Is there a file folder that contains all my license keys? One of my programs lost it's key (SnapzPro). . . I've had no problem with it for 7 years and 2 machines. I can't find my original email with the product key . . . is there a way to locate it i

  • REG: File Adapter

    Hi All,         I have a scenario where i need to pick 2 files from 2 different folders and process them in a particular sequence. Can anyone suggest me a method how this can be achieved. Thanks, Siva.

  • Trackpad keeps "bouncing" the mouse pointer when I tap to select (MacBook Pro, 15" Retina, 2014)

    Hi, I got a brand new 15" MacBook Pro a week or so back and had problems with the trackpad - when I tap to select an item the mouse pointer "bounces" off the item I'm trying to select. It happens randomly - not every time. Very irritating. Supplier g