Using DisplayPixels with different image formats

According to the comments in PIGeneral.h (in the PSPixelMap declaration), the DisplayPixels function can handle only grayscale, RGB, CMYK, and Lab images, plus Duotone and Indexed if it matches the document's format (presumably because the function wants to use the palette from the document). I have a multichannel image that I'd like to draw.
The question is, is there any way to get Photoshop to convert this to a usable format for me? Since I don't know the channel characteristics, I don't think I can do it myself. Alternatively, is there a way to deduce the conversion from the ReadChannelDesc structures in the FilterRecord? Does anybody have code to do this?
Thanks,
Aaron

Hi Mathias,
this is not possible issuing just one request. You would need to repeat the request changing the format.
Joao

Similar Messages

  • [MV] generate two different image formats with one map-request

    hi
    im using MapViewer API.
    can i generate two different image formats (e.g.jpg and svg) with one map-request. is this possible ?
    best regards
    mathias °ö°

    Hi Mathias,
    this is not possible issuing just one request. You would need to repeat the request changing the format.
    Joao

  • Can two peeps use iChat with different accounts on the same computer?

    What do I do to REMOVE an old AIM account and replace it with a new account in IChat?
    Can two peeps use iChat with different accounts in the same computer?
    (Actually, two people share a laptop, but one of us cannot use her AIM account cuz mine is in iChat already... And, when traveling, I have the computer - and I would like to use iChat on the computer...)

    In iChat 4 you can have more than one AIM Valid name logged in at once.
    AIM valid = AIM, @mac.com or a MobileMe name.
    What you are then stuck with is that iChat is linked to one Buddy Picture and The one Mac User Account's Address Book which may or may not have Full Names, emails details, or a Nickname in iChat 4 linked to the Screen Names.
    Whilst it does let you both log in whilst using one Mac User Account there are drawbacks about who uses the keyboard and reading meesages from the other persons Buddies.
    8:50 PM Sunday; November 30, 2008

  • HT204364 how do I order multiple card or postcard with different images each one in same order?

    how do I order multiple card or postcard with different images each one in same order?
    I keep paying separate shipping cost for each different photo

    That is not an option - with the exeption of photo prints you can only identical items on one order
    LN

  • Raw Files Appear Deleted or Corrupted Suddenly in Aperture with Unsupported Image Format Error

    I have been using Aperture 3, latest update, for the past year. Today, I tried to import new raw files from my new Sony RX1r and, as far as I can see, all raw files in Aperture give the "Unsupported Image Format" and alert symbol in the library where not only new files should be, but also ALL PREVIOUS RAW FILES. These files do no even show up as existing in the iPhoto Library.
    This is, needless to say, distressing, as hundreds and hundreds of photos seem lost. Also, the files show a reduced pixel size and file sizes all go to .5 Mb. Some of the photos seemed to show up initially and look fine until I tried to open them, then they all either disappear or show the Unsupported Image Format instead of the opened file. I have tried rebuilding the iPhoto library, but no help.
    I have looked in these discussions and see similar problems with Aperture. Perhaps, Apple has not made an update for the RX1r from the RX1 for raw files, but why should all older raw files now be corrupted, especially those recently made with my Olympus OM-D? Had no problem with Aperture until this disaster.
    Please help.
    William

    Just an update. Restarted computer and attempted rebuilds of iPhoto library a couple more times and finally files and photos mostly recovered, except for those I had tried to open. Aperture seems to have a problem, or a host of them, dealing with RAW files, and there is no update yet for the Sony RX1R for Aperture or iPhoto. Lightroom 5, on the other hand, seems to work great with these files directly, so that will be where all photos go for now. Will iPhoto and Aperture just become old archives? It is so infuriating that Apple does not allow for simple importing and exporting compatibility with such an excellent program as Lightroom 5 just to protect their somewhat poorly supported Aperture. I've been a staunch Apple supporter and user since the 80's, but having more doubts about the direction this company is taking.

  • How to export PDF to HTML with JPEG image format (not PNG)?

    Hello,
    When I export a ".pdf" file to ".html", using Acrobat 11 Pro, the program creates a subdirectory with ".png" image files.
    I need these images to be in the ".jpg" format, not ".png".
    Do any of you know how to change this setting? I am assuming that it is not a permanent default...
    Thank you,
    brivera0

    Alas, I checked on my Acrobat XI before posting. That setting was removed.

  • How do I display call out accessories with different images?

    I need some help with an app I'm developing.  I'm displaying a map with an array of annotations.
    I have managed to display the map & annotations successfully.
    What I want to do next is have call out accessories that display different images everytime they are tapped.
    Can anyone help with this? I have managed to display a right call out accessory but I'm getting stuck here & I don't know how to get my code to display images.
    Any help wil be greatly appreciated!

    baltwo: Thanks for the tip, I didn't know how easy it was to set up custom icons in OS X. In this case it's a difficult solution because it will have to be done by hand for every single folder, which is a problem if I'm going to have these in two places. I'm new to Automator but there doesn't seem to be a way to have it; 1) Select all the folders in a directory. 2) Copy the first image in each folder to the clipboard and have it use that image as each folder's icon.
    Barney-15E: I know it sounds moronic, but yes. I've tried iPhoto but it's not a very good solution in this case. My folder structure is like this:
    Root -> 282 image folders with 10 to 60 pictures in each.
    All I really need is the ability to see at a glance what each image folder has without opening each individual folder. The folders are numbered sequentially (1-282 in this case) rather than by proper names, so this is the most efficient way.

  • Using scripts with different versions of AppleScript

    Hi,
    I have a script that works perfectly in my Apple Script Editor v2.4.3 and Language AppleScript 2.2.1   I've given that script to a friend of mine with AppleScript Editor 2.7 and Apple Script Language 2.4
    The script does not work properly in their AppleScript Editor, does anyone know why this might be and/or how to remedy it?  Is there a way for them to download Language 2.2.1 to use or is there a way to figure out how I need to update my code to work for the 2.4 language.
    Thanks

    Hello
    Whilst scripts using certain features of the latest version of AppleScript language won't even complile on previous versions, scripts written for previous versions should usually work in later versions with some exceptions.
    cf.
    https://developer.apple.com/library/mac/releasenotes/AppleScript/RN-AppleScript/
    https://developer.apple.com/library/mac/releasenotes/AppleScript/RN-AppleScript/ RN-AppleScript.pdf
    - Notable change introduced in 10.8 is new requirement on referencing file system object.
    E.g.,
    open "/path/to/file"
    may work under 10.7 but not under 10.8 or later. Instead you need to use:
    open "/path/to/file" as POSIX file
    etc.
    - Notable change introduced in 10.9 is new requirement on using Accessibility and GUI scripting.
    cf.
    OS X: Using AppleScript with Accessibility and Security features in Mavericks
    http://support.apple.com/kb/HT5914
    Good luck,
    H

  • Three Tabs each with different Images on select or hover

    Hello,
    I have a requirement where in each tab should have different images, currently there are three tabs and all three should have different images when selected/hover, here is a screen shot of my application for tab http://img541.imageshack.us/img541/1087/44160812.jpg , how do i modify CSS to include two other images for tabs "Book" and "Profile"?
    Any help is appreciated.
    Thanks and Regards,
    -Senana

    anyone? - Thanks

  • Date comparision issue with different date formats

    Hi Friends
    I am trying to find difference in hours between two dates but not able to do that as the formats of both dates that i have are different.
    But i have both the dates in the String format. belwo is my code.
    First Date is in the format - yyyy-MM-dd-HH.mm.ss.SSS. String sDate = "2011-05-29-13.50.44.050761";
    Secong date is in the format - yyyy-MM-dd HH.mm.ss String uiDate = "2011-05-29 13.50.44";
    Now i need to parse both the Strings into a Date object and format that so that i can subtract both dates using the
    long difference = uiDate .getTime() - sDate.getTime();
    Can you please let me know how i can do that as the format of both the dates are different.
    Is there a way like a common format to which these both can be converted and calculation done.
    any suggestions and solutions would be of great help.

    Thanks All for your suggestions
    well i figured out the solution with some goggling and r&d.
    For the first case I was getting the Date and Time fields from the UI as two different fields. I then combined these into a Date object and set the format for the first date as yyyy-MM-dd-HH.mm.ss.SSS.
    The second date was already in the above format. Then the i just did the Date comparison and got the difference in hours which was what i wanted.
    Vikeng

  • Batch Replace Smart Object With Different Image Quality and Sizes

    Hi there,
    I need help. I have this template that is in 1000x1000pixel and 300 dpi. I'm trying to replace the smart object inside with various JPEG that I have. These JPEG comes in large image sizes but lower than 300dpi. The issues is, when I run the script that I have, some of the pictures become really pixelated. Beforehand, I resized them to fit into the empty place in sizes that I find fit the best (8 cm x 6 cm). Some of them work okey, but then some of them just pretty bad. I'm wondering if you can help me fix the script that I have so I didn't have to resized the images before running the script, and for all of them to automatically fit into my template without altering the quality of the image that I put in.
    below is the script that I am using and the screenshot of my template:
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var theName= myDocument.name.match(/(.*)\.[^\.]+$/)[1];
    var thePath = myDocument.path;
    var theLayer = myDocument.activeLayer;
    // psd options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = true;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // check if layer is smart object;
    if (theLayer.kind != "LayerKind.SMARTOBJECT") {alert ("selected layer is not a smart object")}
    else {
    // select files;
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog ("please select files", "*.psd;*.jpg;*.jpeg;*.tif", true)}
    else {var theFiles = File.openDialog ("please select files", getFiles, true)};
    if (theFiles) {
    // work through the array;
    for (var m = 0; m < theFiles.length; m++) {
    // replace smart object;
    theLayer = replaceContents (theFiles[m], theLayer);
    var theNewName = theFiles[m].name.match(/(.*)\.[^\.]+$/)[1];
    //Raise color picker for Back cover;
    try {
    app.activeDocument.activeLayer = app.activeDocument.layers[app.activeDocument.layers.length - 1];
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
    var desc7 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref2 = new ActionReference();
    var idcontentLayer = stringIDToTypeID( "contentLayer" );
    var idOrdn = charIDToTypeID( "Ordn" );
    var idTrgt = charIDToTypeID( "Trgt" );
    ref2.putEnumerated( idcontentLayer, idOrdn, idTrgt );
    desc7.putReference( idnull, ref2 );
    var idT = charIDToTypeID( "T " );
    var desc8 = new ActionDescriptor();
    var idClr = charIDToTypeID( "Clr " );
    var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
    desc7.putObject( idT, idsolidColorLayer, desc8 );
    executeAction( idsetd, desc7, DialogModes.ALL );
    } catch (e) {};
    //save jpg;
    myDocument.saveAs((new File(thePath+"/"+theName+"_"+theNewName+".jpg")),psdOpts,true);
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
    if (theFile.name.match(/\.(psd|tif|jpeg|jpg)$/i) != null || theFile.constructor.name == "Folder") {
    return true
    ////// replace contents //////
    function replaceContents (newFile, theSO) {
    app.activeDocument.activeLayer = theSO;
    // =======================================================
    var idplacedLayerReplaceContents = stringIDToTypeID( "placedLayerReplaceContents" );
    var desc3 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc3.putPath( idnull, new File( newFile ) );
    var idPgNm = charIDToTypeID( "PgNm" );
    desc3.putInteger( idPgNm, 1 );
    executeAction( idplacedLayerReplaceContents, desc3, DialogModes.NO );
    return app.activeDocument.activeLayer

    Thank you for your answer.
    I was resizing it before from bigger image size to a smaller one (121 cm to 8 cm) which fit my template size. But the dpi remains in 72 which makes the picture pixelized.
    I am wondering if I can find a script that will keep the size of the first image that I put on the template for other images that I place, regardless the size they are imported to. Basically, how to make them all fit into the template regardless the size.
    Thank you for the info about the scripting forum. I will write there too.
    Sorry, I'm so new to this

  • How to find a word with different font format (e.g. italic and regular in one word)

    Hi people,
    I need to find a word, prefferably using GREP or simple Find/Replace tool.
    Sometimes, when I get source text to paste into InDesign, some word's format is messed up. First letter is italic and rest is regular or otherwise (or any other font format). How can I find such words automatically. For example:
    Example
    would really appreciate any help.
    best regards
    JMG.

    Hi,
    If I had to do that, using Multi-Find/Change, I would play it like:
    With MFC, I create a set of the 2 regex. So, one click to fix your problem.

  • Re-using SSLSession with different SSLSockets

    I saw this question asked multiple times in the past but I have never seen the answer. Does anybody how to re-use SSLSession when creating multiple SSLSockets?
    Thanks, Kris

    Based on my testing SUN's SSL implementation creates and reuses SSL session automatically.
    You need to use one socket factory to create all your sockets.
    You execute handshake only on the first socket. Handshaking creates the session.
    The other sockets will not need hadshaking assuming you will use the same socket factory.
    All the sockets created in this manner will reuse the same session.
    You can close all the sockets and the SSL Session is still kept alive.
    To prove my point I have modified sample Client that is bundled with JSSE package.
    Running Client produces the results:
    D:\Download\Test1>java SSLSocketClient localhost 7000
    Session for socket1 (1549180): 7224672
    Session for socket2 (8365662): 7224672
    As you can see from the results there are two different sockets reusing the
    same session. The first socket is closed before the second socket is opened.
    The sample is below, the changes are mostly at the end of the file
    // Begin of the sample
    import java.net.*;
    import java.io.*;
    import javax.net.ssl.*;
    import javax.net.*;
    * This example demostrates how to use a SSLSocket as client to
    * send a HTTP request and get response from an HTTPS server.
    * It assumes that the client is not behind a firewall
    public class SSLSocketClient {
    public static void main(String[] args) throws Exception {
         try {
    /*     SSLSocket socket =
              (SSLSocket)factory.createSocket("www.verisign.com", 443);
         int port = 7030;
         String host = "localhost";
         if (args.length > 1) {
              host = args[0];
              try {
                   port = Integer.parseInt(args[1]);
              catch (Throwable th) {}
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("javax.net.ssl.trustStore", "testkeys");
         SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket sslsocket1= (SSLSocket)factory.createSocket(host, port);
         sslsocket1.startHandshake();
         System.out.println("Session for socket1 (" + sslsocket1.hashCode() + "): " + sslsocket1.getSession().hashCode());
         // first socket being closed
    sslsocket1.close();
    SSLSocket sslsocket2= (SSLSocket)factory.createSocket(host, port);
         System.out.println("Session for socket2 (" + sslsocket2.hashCode() + "): " + sslsocket2.getSession().hashCode());
    sslsocket2.close();
         } catch (Exception e) {
         e.printStackTrace();
    //End of the Sample

  • How to make a multi-clip with different footage formats?

    Have an hour-long concert shot with three cameras plus a separate high-quality audio track.
    Cameras 1 & 2 are the same format (HDV 1080p30).  Camera 3 is DSLR footage from Canon 5D (imported into FCP7 using Log & Transfer).
    I used PluralEyes to sync everything up, and created a Multiclip -- but that multiclip isn't working properly when I drag it into a new sequence.  (It makes me render the whole thing before I can even work with it -- and then it won't work anyway.)
    Help ...

    OK.  For testing, I converted the DSLR to HDV (can do ProRes later).
    The Multiclip still does not work.  It DOES work if it's just cameras 1 & 2, but when I add camera 3 (the DSLR) -- the sequence wants to render and then when I select "Open" to work with the multiclip, it doesn't work.
    I don't understand what's wrong, because all three camera clips were used with PluralEyes and all three have the exact same settings (HDV 1080p30, 1440 x 1080, 29.97 fps).
    What's wrong?

  • Receiving error when calculating two fields with different date format

    I am more familiar with SQL Server than Oracle, so after searching online without success, I am asking here.
    I'm using PL/SQL Developer with Oracle DB 11g Enterprise Release 11.2.0.2.0 64 Bit
    MyTable:
    ID_Number     VarChar2
    Date_Received     Date
    Select ID_Number,
         Date_Received,
         To_Date(substr(ID_Number, 1,6), 'YYMMDD') SentDate,    
         Date_Received - To_Date(substr(ID_Number, 1,6), 'YYMMDD') NumDays
    From MyTable
    Where substr(ID_Number, 7,3) in ('ABC', 'ABD')
    and Length(Trim(Translate((substr(ID_Number, 1,6)), '0123456789', ' ' ))) is null
    ID_Number                    Date_Received          SentDate          NumDays
    131002ABC1654106     10/16/2013               10/2/2013          14
    131004ABD8813899     4/12/2013                 4/8/2013            4
    131014ABD1844832     10/16/2013               10/14/2013          2
    Sometimes the first 6 characters in the ID_Number are not numbers, and the Length(Trim(Translate removes those records
    I just want records where NumDays > 2
    I've tried putting the query in a subquery and using Where NumDays > 2 outside.  I've also tried using the computation directly in the Where clause.  Without this in the Where clause it runs fine, with it in either spot I get the following error:
    ORA-01931: Date format picture ends before converting entire input string
    I'm not sure how to put both dates in the same format.  I've tried declaring the format to no avail.  I do not understand how I can calculate within the select but not use the same calculation within the Where clause.
    Thank you for your help.

    Hi,
    SQL is a language for describing the results you want.  How the system gets those results is up to it; you don't have much say regarding which conditions will be applied when.
    One place where you can control the order of things is in a CASE expression.  When you say
    CASE
        WHEN  condition_1
        THEN  expression_1
    END
    you can be sure that expression_1 will only be evaluated when cond_1 is TRUE.
    Try something like this:
    WITH  got_sent_date AS
        SELECT  id_number, date_received
        ,       CASE
                    WHEN  TRANSLATE ( SUBSTR (id_number, 1, 6)
                                    , 'x 0123456789'
                                    , 'x'
                                    )  IS NULL
                    THEN  TO_DATE ( SUBSTR (id_number, 1 6)
                                  , 'YYMMDD'
                END     AS sent_date
        FROM    MyTable
        WHERE   SUBSTR (id_number, 7, 3) IN ('ABC', 'ABD')
    SELECT  id_number
    ,       date_received
    ,       sent_date
    ,       date_received - sent_date    AS num_days
    FROM    got_sent_date
    WHERE   date_received  > sent_date + 2
    If you'd care to post some sample data (CREATE TABLE and INSERT statements) and the results you want from that data, then I could test this.
    Of course, you'll still have run-time errors if id_number starts with 6 digits, but they don't happen to be valid, e.g. '131100' or '130229'.  That's one of the many reasons why storing date information in VARCHAR2 columns is such a bad idea.  To get around that problem, see
    https://forums.oracle.com/message/4255051

Maybe you are looking for