Script help please. You will need to save it as a different file type.

I have a script which now saves files as jpg files.  I need to save a png image.  Someone would be able to help me with this?

var doc = app.activeDocument;

var Path = doc.path;

var Name = doc.name.replace (/ \.) [ ^\.] +$/, ''); Var suffix = "_full_l"; var saveFile = file (path + "/" + "full_l" + ".jpg"); SaveJPEG (saveFile, 8);

function SaveJPEG (saveFile, jpegQuality) {jpgSaveOptions = new JPEGSaveOptions(); jpgSaveOptions.embedColorProfile = true; jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE; jpgSaveOptions.matte = MatteType.NONE; jpgSaveOptions.quality = jpegQuality; activeDocument.saveAs (saveFile, jpgSaveOptions, true, Extension.LOWERCASE) ;}}

Here you are...

var doc = app.activeDocument;
var Path = doc.path;
var Name = doc.name.replace(/\.[^\.]+$/, '');
var Suffix = "_full_l";
var saveFile = File(Path + "/" + "full_l" + ".png");
SavePNG(saveFile);
function SavePNG(saveFile){
    pngSaveOptions = new PNGSaveOptions();
    pngSaveOptions.embedColorProfile = true;
    pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    pngSaveOptions.matte = MatteType.NONE;
    pngSaveOptions.quality = 1;
 pngSaveOptions.PNG8 = false;
    pngSaveOptions.transparency = true;
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
}

Tags: Photoshop

Similar Questions

  • You will need to replace existing Web site pdf file. Help, please!

    Our intern left this summer and we are clueless on Dreamweaver. We have a Spry Menu with a link to a pdf file of our employment application. Our application has been reviewed, and we need to replace it on the Web site.

    From what we have gathered, Spry Menu Widget is no longer available for download, and we cannot change the link in a new file via the widget because the intern took his notebook with the installed widget.

    So to do this, I downloaded the files from the website my Local folder, deleted the old application employment pdf file and replaced it with the new application with the same exact filename than the old.

    My question is... If I point out the new application in our local folder and click on download, it makes the link in the menu to go to the new application?

    Thanks for you help in advance!

    Okay, of course. If we were to replace a pdf file linked in our spry menu bar. We had the widget and do not think that you could download it, then we went to the folder on the lower right part of the screen and open the remote folder. We then highlighted all files except for the / at the top of the file. Then we clicked on the arrow down to copy these files in our local folder. Once they have been uploaded, we went in the local and found the file folder that we needed to switch out. We then deleted this file, named our new file the same exact file name and clicked and dragged from our computer to the folder containing the file that we removed. Then we have highlighted in this file, click right and choose 'PUT', as Jon had instructed us to do above. Downloaded the file. When it was over, we checked our website and got an error because the pages would not load. However, a few minutes later, we tried again and everything worked perfectly. The new PDF had replaced a former and always connected correctly the MenuBar.

  • Touch screen works not? You will need to save?

    WWon can't trust me to the computer I use to back up as the screen of my toych does not work?

    is it all the same?

    What iOS version do you use? What version of iTunes? If your touch screen does not work, have no way around that, unless you happened to have iCloud activated before this backup. If you did, you should be able to plug the iPhone to power while connected to WiFi and it must safeguard. But if you just backup iTunes, then with a non-functional screen, you can't back up.

  • you will need to save the files to a new PC.

    Broken pc screen, but we had to save images and other files to new pc.  Both have Windows 7.

    Greg

    Broken pc screen, but we had to save images and other files to new pc.  Both have Windows 7.

    Greg

    Hey Greg P Jane E

     
    1 get the screen fixed
    2. buy a sweater drive enclosure hard usb hard drive and put it in and read it in the other computer
    3. try to repost in Forum windows 7 because vista forums

    Walter, the time zone traveller

  • This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system (Code 12)

    Guys, I have a problem. So, my laptop has 2 graphics cards, an integrated course of the Intel HD graphics (which works perfectly) and the other being the dedicated Nvidia graphics (Nvidia GeForce 940 m). Until 2 days ago, everything was going well and running.

    I have the application experience GeForce and it prompted me that there is a new driver update should I download. He started to install then after rebooting to complete the installation, it failed. I checked my device manager and saw a yellow exclamation under under my Nvidia graphics card (remember, my laptop has two graphics cards: Nvidia graphics card and Intel HD graphics that works correctly). I immediately checked the details, and he said:

    "This device cannot find enough free resources that it can use. (Code 12) »

    "If you want to use this device, you will need to disable one of the other devices on this system."

    This seemed very strange, because it was LITERALLY working properly before I was invited about update driver I got, so I don't know what to do - as a matter of fact, literally, I finished this game, Deadpool, with my Nvidia card that I put as the default graphics card, a few hours before , so I don't know why this happened. Any help? I'm looking for a logical answer to this, guys!

    Additional information:

    A few days before this happened, I went to my store local pc and installed an extra 4 gigs of ram on my 4 existing to make 8. Don't know if it's useful, but anyway

    If I pick up my laptop and shake it side by side, I hear a slight rattling noise, and it seems a little loose (I found this out after seeing the error message). The noise seems to come from just below the middle of my keyboard (I'm using a laptop). If for some reason, my Nvidia card is loose? Is this possible?

    I am quite technologically inclined, but not to the extent of removing components and reconstruction cell phones / pc and access the bios and what not. I can only remove/add ram.

    I want to know if its something I am able to fix it because I do not necessarily want to go running and sending my laptop places - only my pc up shop.

    Here is the location of my Nvidia card: PCI Slot 4 (PCI bus 4, device 0, function 0)

    My specs:

    Acer TravelMate p257-MG

    Windows 7 business

    Intel core i5-5200u 2.20 GHz 2.20 Ghz processor

    8.00 GB of ram

    64-bit operating system

    1 t hard drive

    940 m Intel HD graphics 5500 & Nvidia Geforce card

    Just to recap, I get the error on my Nvidia graphics card code, "this device cannot find enough free resources that it can use. (Code 12) ""If you want to use this device, you will need to disable one of the other devices on this system. »

    Thanks in advance!

    Hello

    Thank you for your response.

    I appreciate your time.

    I suggest you run ' Intel Chipset Software Installation Utility ' and check.
    Reference:
    http://www.Intel.com/content/www/us/en/support/software/Chipset-Software/Intel-chipset-software-installation-utility.html

    Please keep us updated.

    Thank you

  • You will need administrator permission.

    This error has become a nightmare for me. I've been struggling with almost a week now.

    I am trying to copy file from my hard drive on my new laptop (windows 7, dell 14z). Some files are throwing error, you will need administrator permission to copy this file, in spite, I logged in as an administrator.
    I gave all the tests with the evolution of the property, all permissions, removing UAC all... no help at all.... PLEASE suggest something.
    SARA

    This occurs because the files on your desk belong to a user that is different from the user of the laptop (or different passwords). In asserting the admin rights every time, you tell Windows that you don't care about file property. There are two ways to solve the problem:

    • Use the same account & password on the laptop that you use on the desktop.
    • Take ownership of files and folders: http://social.answers.microsoft.com/Forums/en-US/w7network/thread/24bdf172-2dbc-43b8-995d-a99b6a81413c/
    If it does not, then it is likely that your files are encrypted. You must decrypt before copying them.
  • You will need to disable the first 10 items?

    I have a new laptop and downloaded my first items 10 and Photoshop. However, I got a message when I opened the first telling me that I needed to disable it on another computer. But I can't figure out how to turn off!

    In addition, I don't know if it's connected with my need to turn off or if it's just the computer, but I can't use one of the links in the menu to create on the old laptop, and I can't connect to my Adobe ID on either.

    Can someone help me?

    PS: If it's important, all of my new laptop runs on Windows 8 and the old man is 7.

    TsukiNaito1

    Adobe permits you to use your first items purchased 10 on only 2 of your computers serial number. If you want to put this on a 3rd computer serial number you will need to 'Disable' installation on PC 1 or 2 to get this serial number of first Elements 10 purchased on computer 3.

    The message you get on computer 3, you are saying that your first 10 items is on more than 2 of your computers already (computer 1 and 2) and you want to install it on another (the 3rd computer).

    So, where you have first Elements 10 installed?

    Go to one of these first Elements 10 computer configurations. Open first items 10 to its workspace. Go to help Menu/disable and click on disable for this. Close to there. At this point, you can

    a. leave the program installed but disabled on computer 1 or 2 as the case

    or

    b. Uninstall computer 1 or 2 as the case mya.

    Please see the newsletter and let us know if the above is clear and works for you.

    Thank you.

    RTA

  • You will need to connect the battery, but lapptop now sign showing that the battery is not connected, so does not load.

    You will need to connect the battery. until recently, all ok.  never use the laptop as a mobile, always on the wireless, but lapptop shows now sign that the battery is not connected so does not load.

    I have a laptop which, so far, is always connected wireless when it is in use. I want to take a vacation, and notice a signal arrives that the battery is not connected and therefore does not load.  This has happened recently, although the battery never showed a 100% charge. can someone tell me how to connect the battery please.

    Check that the battery is correctly installed. If it is then the problem is that the battery is exhausted, so you should buy a new battery.

  • You will need to get an older date?

    HI: SQL and PL/SQL

    I have a table like this. You will need to get more old datetime for each metricno. Need help

    METRICNOTDATESUWIMON
    1109:13:14 10/01/20141200.00
    1109:13:23 10/01/2014100.00
    1118:47:01 10/02/201410000.00
    1210/01/2014-18:47:171100.00
    1221:59:58 10/01/20142000.00
    1210/03/2014 22:00:1310000.00
    1310/07/2014 22:01:28500.00
    1310/08/2014-22:03:081100.00

    Output

    METRICNOTDATETRANSFER_AMOUNT
    1109:13:14 10/01/20141200.00
    1210/01/2014-18:47:171100.00
    1310/07/2014 22:01:28500.00

    Thank you/Tequila

    with

    a_table as

    (select 11 metricno, adate to_date('1/10/2014 9:13:14 AM','dd/mm/yyyy hh:mi:ss AM'), 1200.00 suwimon Union double all the)

    Select 11, to_date('1/10/2014 9:13:23 AM','dd/mm/yyyy hh:mi:ss AM'), 100.00 Union double all the

    Select 11, to_date('2/10/2014 6:47:01 PM','dd/mm/yyyy hh:mi:ss AM'), 10000.00 Union double all the

    Order 12, to_date('1/10/2014 6:47:17 PM','dd/mm/yyyy hh:mi:ss AM'), 1100.00 Union double all the

    Order 12, to_date('1/10/2014 9:59:58 PM','dd/mm/yyyy hh:mi:ss AM'), 2000.00 Union double all the

    Order 12, to_date('3/10/2014 10:00:13 PM','dd/mm/yyyy hh:mi:ss AM'), 10000.00 Union double all the

    Select 13, to_date('7/10/2014 10:01:28 PM','dd/mm/yyyy hh:mi:ss AM'), 500.00 per union double all the

    Select 13, to_date('8/10/2014 10:03:08 PM','dd/mm/yyyy hh:mi:ss AM'), double 1100.00

    )

    Select metricno, adate, suwimon

    of (metricno, adate, suwimon, rank (select) over (partition by order metricno by tdate) rnk

    of a_table

    )

    where rnk = 1

    METRICNO TDATE TAMOUNT
    11 01/10/2014 1200
    12 01/10/2014 1100
    13 07/10/2014 500

    Just to provide your data in the case of other ideas arise

    Concerning

    Etbin

  • You will need to download and install on my new computer the Adobe Acrobat XI Pro student and Teacher Edition. How can I download it?

    You will need to download and install on my new computer the Adobe Acrobat XI Pro student and Teacher Edition. How can I download it?

    kglad links in response to #1 here can help https://forums.adobe.com/thread/2017859

  • you will need to update my version no CC in lightroom (the last update, 6.2 I think). where can I find this CC download no

    you will need to update my version no CC in lightroom (the last update, 6.2 I think).

    The latest version is 6.3, go to the Help Menu and there are updates... choose.

  • I can't update my CS5 because I loaded Yosemite on my iMac. you will need to update the files camera raw.

    I can't update my CS5 because I loaded Yosemite on my iMac.  You will need to update the raw files.

    Please try and reinstall CS5: stalling-yosemite-version-10-10-on-imac http://feedback.photoshop.com/photoshop_family/topics/problems-with-photoshop-cs5-after-in it seems that the update of the OS is corrupt PS CS5 if it was installed before the upgrade to Yosemite. Let me know if that will fix it for you.

    With the permission of Jeffrey Tranberry

  • Siri keeps saying "I don't see an app for that.  You will need to download one. »

    I just installed Sierra and tried to use Siri.  I can't open any app on my Mac.  No matter when I say something like, "FaceTime open" or "Open Pages," Siri comes back with something like "I don't see an app for that.  "You will need to download a ' or 'you don't seem to have an app called 'Pages'.  We could see if the App Store has it. »

    Hmmm... This is not sensible.

    You need to speak clearly. I had the same thing happen. It took a few tries but Siri has finally opened apps for me.

    Practice support

  • You will need to check on a PC with WinXP OpSys PUP. Could DO with Win98 and earlier versions. HOW can I make WinXP let me control BACK Pup?

    You will need to check on a PC with WinXP OpSys PUP.  Could DO with Win98 and earlier versions.  HOW can I make WinXP let me control BACK PUP?   Acquired CNC machines controlled by PRE - Win.XP PC works fine.  But Win.XP prevents the PUPPY control via simple BACK and GWBASIC.   You want to be able to start/stop all 8 bits of data PUP with BASE and BACK.

    Thank you.   Jan Rowland

    Hey Jan Rowland,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited in the Windows XP Pro on the Technet Forums.

    Post your query in Technet Windows XP IT Pro Forums for assistance on this issue.
  • you will need to merge with (same drive) c: drive d: drive.

    c: drive is full

    Unless you want to do a clean install of Windows (do your partitioning during installation), you will need partitioning software third party to do so. I usually use Acronis Disk Director, but there are others. MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for