Is there a simple way to convert the bits to 16 bit depth?

It seems there are specific methods PDF/BITMAP to convert 8-bit depth, but I can't find any documentation to make it easily the file as a whole. Is there a way to do this? I want to convert from 32 to 16 bit.

I have the Image Processor Pro code that looks like this:

  // Bit Depth
  var bd = toNumber(task.@bitDepth) || 0;
  if (bd) {
    var bpc = doc.bitsPerChannel;
    try {
      if (bd == 8) {
        doc.bitsPerChannel = BitsPerChannelType.ONE;
      } else if (bd == 8) {
        doc.bitsPerChannel = BitsPerChannelType.EIGHT;
      } else if (bd == 16) {
        doc.bitsPerChannel = BitsPerChannelType.SIXTEEN;
      } else if (bd == 32) {
        doc.bitsPerChannel = BitsPerChannelType.THIRTYTWO;
      }
    } catch (e) {
      LogFile.logException(e, "Error selecting bit depth " + bd);
    }
  }

Then, later, I have this code that modifies the document mode so that you can save it as a bmp file:

  if (ImageProcessorOptions.JDI && ext == "bmp") {
    // We need to make adjustments depending the number of
    // bmp save bits selected
    if (saveOpts.depth == BMPDepthType.ONE ||
        saveOpts.depth == BMPDepthType.SIXTEEN ||
        saveOpts.depth == BMPDepthType.TWENTYFOUR ||
        saveOpts.depth == BMPDepthType.THIRTYTWO) {
      saveOpts.rleCompression = false;
    }
    if (saveOpts.depth == BMPDepthType.FOUR ||
        saveOpts.depth == BMPDepthType.EIGHT) {
      doc.changeMode(ChangeMode.GRAYSCALE);
    }
    if (saveOpts.depth == BMPDepthType.ONE) {
      if (doc.mode != ChangeMode.BITMAP) {
        doc.changeMode(ChangeMode.GRAYSCALE);
      }
      var cnvtOpts = new BitmapConversionOptions();
      doc.changeMode(ChangeMode.BITMAP, cnvtOpts);
    }
  }

I don't think I've tested with PDF files.

I hope this helps.

Tags: Photoshop

Similar Questions

  • Is there an easy way to convert the 3 tables in 1?

    LabVIEW HelloWorld:

    Is there an easy way to convert 3 one-dimentional tables in a table to two dimensions?

    as shown below?

    I tried the remodel, table vi, but could not get.

    Thank you very much for your help.

    \\carlos

    For the example shown, this seems to work.

  • Is there a simple way to move an entire animation in the framework?

    Hi, I just set up my first film of simple animation in AE but have now realised it is off center in the frame. is there a simple way to reposition the entire animation?

    It is a layer that is off or it?

    There are a few ways.

    If it is a layer, place your time running on a keyframe position indicator. Select all the position keyframes. Drag the position values to move all keyframes at once.

    Or move the anchor point of your animated layers

    If it's several layers, parent your layers in a new layer and then move the parent.

    Or you need to precompose your animation and move the precomp.

  • is there a way to convert the GIF to JPEG files?

    I have WINDOWS XP. Is there a way to convert the GIF to JPEG files?  Thank you.

    Tuesday, June 26, 2012 21:13:13 + 0000, PSSLIV wrote:

    I have WINDOWS XP. Is there a way to convert the GIF to JPEG files?

    Almost any image editor can do, including Microsoft Paint, which
    provided with Windows. Just open the GIF file, and then do a save as, and
    Choose the type of JPG file.  There are also many third-party programs
    which can convert a chart type to another, including the GIF to JPG.
    Do a search on the web.

    Ken Blake, Microsoft MVP

  • Is there an easy way to convert graphics (imported from the common library) Composite path?

    Hi all

    This is my problem:

    I had sex with any common library grapch, and I would like to convert to a Composite path. I had been using a manual method (double click on the image and copy the compound path, and then stick it on my main layer).

    question:

    Is there an easy way to convert graphics (imported from the common library) Composite path? as a shortcut, or other?

    Image:

    forum_01.png

    Thank you before and waiting for your responses

    With the object selected, choose Modify > symbol > Break Apart. Then click Modify > ungroup.

  • need the simple way to set the computer back to factory settings, and already saved safe data

    need the simple way to set the computer back to factory settings, and already saved safe data

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    See you soon.

    Mick Murphy - Microsoft partner

  • Is there a simple way to transfer files from Windows 7 to Windows 10?

    Original title: want to transfer files on my Windows 7.  Help!

    Still trying to get my files from my Windows 7 laptop to my Windows 8.1.  Would it not easier that I have upgraded to Windows top 10?  Is there a simple way to transfer from Windows 7 to Windows 10?

    You look in Windows Explorer > Documents, photo, music, etc.

    If you don't know where you saved the files, you have a big problem.

    You are the only person who knows where you saved your files.

    See you soon.

  • Is there a simple way to determine if an operating system has been virtualized?

    Is there a simple way to inspect a linux system, perhaps by a hook / proc, to determine if an operating system has been virtualized?  More multi-vendor is the solution, the better.  I don't know that I could grep through my table and system process for various metrics file, but I need something very stable, well known, and Boolean.  (This question has overcome my google skills as it is too vague for the sentence)

    Hello

    Yes, it is called red pill and you can watch the material using the command lspci or RedPill to determine more information.

    Best regards

    Edward L. Haletky VMware communities user moderator, VMware vExpert 2009, url = http://www.virtualizationpractice.comvirtualization practical analyst [url]
    "Now available: url = http://www.astroarch.com/wiki/index.php/VMware_Virtual_Infrastructure_Security' VMware vSphere (TM) and Virtual Infrastructure Security: securing the virtual environment ' [url]
    Also available url = http://www.astroarch.com/wiki/index.php/VMWare_ESX_Server_in_the_Enterprise"VMWare ESX Server in the enterprise" [url]
    [url =http://www.astroarch.com/wiki/index.php/Blog_Roll] SearchVMware Pro [url] | URL = http://www.astroarch.com/blog Blue Gears [url] | URL = http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links Top security virtualization [url] links | URL = http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcast Virtualization Security Table round Podcast [url]

  • Is there a quick way to convert a file from Ia 13 13 files have separate page

    Is there a quick way to convert a file from Ia 13 13 files have separate page? I need to re-register or pull them OUT as standard PDF files, and I need to start with the files have unique page.

    Thank you.

    This is so in CS5

  • is there an easy way to get the number of months in a year in a date range?

    Hi, experts, I am a newbie.

    are there any easy ways to get the number of months in a year in a date range?

    I would like to write a user-defined function.

    the input parameters are startdate, enddate, year

    the output is a number, not a month.

    for example, case 1

    StartDate = 01032009 (DDMMYYYY)
    end date = 28022010 (DDMMYYYY)
    If the year 2009, the output is 10
    If the year = 2010, the output is 2

    case 2:

    StartDate = 10032009 (DDMMYYYY)
    end date = 15032010 (DDMMYYYY)
    If the year 2009, the output is 10
    If the year = 2010, the output is 3

    Thank you very much!

    Hello

    You can (also) try this:

    SQL> with s as (
      2  ------------ Sample data -------------
      3  select to_date('01032009','ddmmyyyy') startdt, to_date('28022010','ddmmyyyy') enddt, 2009 yr from dual
      4  union all
      5  select to_date('01032009','ddmmyyyy') startdt, to_date('28022010','ddmmyyyy') enddt, 2010 yr from dual
      6  union all
      7  select to_date('10032009','ddmmyyyy') startdt, to_date('15032010','ddmmyyyy') enddt, 2009 yr from dual
      8  union all
      9  select to_date('10032009','ddmmyyyy') startdt, to_date('15032010','ddmmyyyy') enddt, 2010 yr from dual
     10  ------------ Sample data -------------
     11  )
     12  select startdt, enddt, yr,
     13  months_between(
     14          least(trunc(to_date(yr+1,'yyyy'),'year') , add_months(trunc(enddt,'month'),1))
     15          , greatest(trunc(to_date(yr,'yyyy'),'year') , trunc(startdt,'month'))
     16  ) nbmonths
     17  from s;
    
    STARTDT    ENDDT              YR   NBMONTHS
    ---------- ---------- ---------- ----------
    01/03/2009 28/02/2010       2009         10
    01/03/2009 28/02/2010       2010          2
    10/03/2009 15/03/2010       2009         10
    10/03/2009 15/03/2010       2010          3
    

    It's pretty simple. (no connection with, without functions SQL only integrated multicast, etc...)

  • No there is no way to override the lock 8 hours AFTER you have changed all your questions?

    No there is no way to override the lock 8 hours AFTER you have changed all your questions?

    < object edited by host >

    use the contact for Apple at the bottom of this page and ask them if it is a question about the security of your account.

  • Hello. I so want to know if there is a way to keep the photos on icloud and get them deleted on your iphone, so that there is no problem of storage of the device

    Hello. I so want to know if there is a way to keep the photos on icloud and get them deleted on your iphone, so that there is no problem of storage of the device.

    iCloud is a synchronization system, not an external 'hard drive '. If you remove them on your device, they will remove icloud. To increase the available space, go settings/iCloud/Photos and select optimize iPhone/iPad storage. That will reduce the space required by 90% when it is fully effective.

  • Is there really no way to change the spacing of grid icon?

    My new iPad Pro is pretty well what I was hoping, with the exception of the 4 x 5 grid incredibly Needless to the app icons. On all other devices I use, this big screen would be comfortably and readable display four times more items, or more, avoiding to go back between home pages. I already spent a lot of time wandering through my pages trying to find applications of interest, and I just started to charge this device with the stuff I use. I understand the desire for consistency on all platforms, but this seems extreme. In this logic, all iOS devices should all have the same resolution too. As far as I can see, the only way to change the icon spacing is to jailbreak the device. Is this true?

    There is no way to change the spacing of app icon. Have you tried to use folders on your home screen?

  • MAC address: Is it possible to change the MAC address of a machine & also if there is a way to see the physical address of the machine on the other to see through the command line...?

    Is it possible to change the MAC address of a machine & also if there is a way to see the physical address of the machine on the other to see through the command line...?

    Is it possible to change the MAC address of a machine & also if there is a way to see the physical address of the machine on the other to see through the command line...?

    Yes.

    Yes.

    Of course - you use 'other/unknown', then...?

    (Google for "MAC spoofing").

  • Does anyone know if there is a way to define the layout of icons on the desktop when it is a 'bureau', then a different configuration for when it's a laptop?

    Original title: desktop themes?

    I use my cell phone as both a laptop and a "desktop"(connecter à un moniteur 24''). "»  Does anyone know if there is a way to define the layout of icons on the desktop when it is a 'bureau', then a different configuration for when it's a laptop?  I don't want to keep moving icons and I'm a little OCD about where they are.

    Hi MelissaES,

    You can follow these links & check if it helps.

    Set up multiple monitors

    Understanding multiple monitors

    Multiple monitors: frequently asked questions

    Hope the helps of information.
    Please post back and we do know.

Maybe you are looking for