Save jpeg2000 with Photoshop CS4 using VB

Hello,
I want use Photoshop CS4 to convert different files to JPEG2000. I copied the jpeg2000-plugin to the plugin-folder but can I use the plugin within VisualBasic(2008)?
Greetings
Georg

There are some difficulties saving the jpeg2000 file. When i save a jpeg2000 file via the menu of photoshop it is working correct. When i try this by using the vbscriptinglistener values from this save, the file will save as jpeg2000 but when i check the parameters via kakadu the layers parameter is
changed from 1 into 6. Does anybody know the solution to get this working ok ?
Regards Jan
Winbatch script
objApp = CreateObject("Photoshop.Application")
        Image    = "D:\DATA\JP2\0002.JP2"
        ImageNew = "D:\DATA\JP2\0002.JP2"
        docRef = objApp.Open(Image)
dialogMode = 3
idsave = objApp.CharIDToTypeID( "save" )
desc4 = CreateObject( "Photoshop.ActionDescriptor" )
idAs = objApp.CharIDToTypeID( "As  " )
desc5 = CreateObject( "Photoshop.ActionDescriptor" )
layers = objApp.ActiveDocument.Layers.Count
Message("layers=",layers)
idJPLS = objApp.CharIDToTypeID( "JPLS" )
desc5.PutBoolean(idJPLS,@False)
idJPFM = objApp.CharIDToTypeID( "JPFM" )
desc5.PutBoolean( idJPFM, @True )
idJPMD = objApp.CharIDToTypeID( "JPMD" )
desc5.PutBoolean( idJPMD, @True )
idJPTP = objApp.CharIDToTypeID( "JPTP" )
desc5.PutBoolean( idJPTP, @False )
idJPJC = objApp.CharIDToTypeID( "JPJC" )
desc5.PutBoolean( idJPJC, @True )
idJPEH = objApp.CharIDToTypeID( "JPEH" )
desc5.PutInteger( idJPEH, 50 )
idJPPO = objApp.CharIDToTypeID( "JPPO" )
desc5.PutInteger( idJPPO, 0 )
idJPCS = objApp.CharIDToTypeID( "JPCS" )
desc5.PutBoolean( idJPCS, @True )
idJPWF = objApp.CharIDToTypeID( "JPWF" )
desc5.PutInteger( idJPWF, 0 )
idJPTS = objApp.CharIDToTypeID( "JPTS" )
desc5.PutInteger( idJPTS, 0 )
idJPJX = objApp.CharIDToTypeID( "JPJX" )
desc5.PutBoolean( idJPJX, @False)
idJPXM = objApp.CharIDToTypeID( "JPXM" )
desc5.PutBoolean( idJPXM, @True)
idJPEX = objApp.CharIDToTypeID( "JPEX" )
desc5.PutBoolean( idJPEX, @True )
idJPIP = objApp.CharIDToTypeID( "JPIP" )
desc5.PutBoolean( idJPIP, @True )
idJPRP = objApp.CharIDToTypeID( "JPRP" )
desc5.PutBoolean( idJPRP, @True)
idJPEV = objApp.CharIDToTypeID( "JPEV" )
desc5.PutInteger( idJPEV, 0 )
idJPIS = objApp.CharIDToTypeID( "JPIS" )
desc5.PutInteger( idJPIS, 1 )
idJPRS = objApp.CharIDToTypeID( "JPRS" )
desc5.PutInteger( idJPRS, 1 )
idJPEGtwozerozerozero = objApp.StringIDToTypeID( " JPEG 2000" )
desc4.PutObject( idAs, idJPEGtwozerozerozero, desc5 )
idIn = objApp.CharIDToTypeID( "In  " )
desc4.PutPath( idIn, ImageNew)
objApp.ExecuteAction( idsave, desc4, dialogMode )
layers = objApp.ActiveDocument.Layers.Count
Message("layers=",layers)
objApp = CreateObject("Photoshop.Application")
dialogMode = 3
idCls = objApp.CharIDToTypeID( "Cls " )
objApp.ExecuteAction( idCls, , dialogMode )
ObjApp.Quit
Save via the menu Photoshop

Similar Messages

  • Using Lightroom 5 with Photoshop CS4

    Hi folks. New Here. I am a novice convert to digital photography and I have browsed the discussions concerning Lightroom and Elements in the main.
    Is there any need to buy Lightroom 5 to deal with cataloguing and searching imported RAW images with Photoshop CS4, as Photoshop Bridge 4 comes with Photoshop CS4? What is a good strategy for dealing with libraries of images? I have the chance to aquire inexpensive versions of LR 5 and P CS4.
    For your information - I am using a MacBook Pro with a quad core i7 processor, 16 GB RAM, 1 TB Flash drive and my camera is a Canon PowerShot SX50 HS.
    Many thanks.

    Thanks 99jon,
    I appreciate the careful and easy to understand reply, Jon99. Versions of P higher than CS4 are prohibitively expensive for me at this stage. If I get on with digital photography then I might look at the PCS and L CC subscription option in the future.
    I went ahead I aquired my bargain basement version of P CS4 and like it so far, but I held back on LR5 until I had a clearer view of what it enables me to do and thanks for the information.
    Do you or anyone know if I can sell my version of P CS4 when if I decide to move up to the Cloud solution? Flicking through another Pogue-style book seems to suggest that the latest versions of P CS and L are the current state-of-the-art. Is there a simple list of what users of this option consider to be the main, *essential* improvements of the latest versions of these two pieces of software that possibly make it a must-purchase. I am not after an exhaustive list, but just the main improvements that may make this an essential purchase after I cut my teeth with P CS4.
    I am a real novice and have included the specs of my camera and MacBook Pro in my previous post for anybodies info in order to help me.
    Many thanks,
    David

  • Problem with Photoshop CS4 after migration to new Mac

    I just migrated from an old Mac to a new Macbook Pro running Mavericks. I'm having a problem with Photoshop CS4. Specifically, two things:
    1) When I open an image in Camera Raw, I get this error:
    Fatal error - missing component
    /Library/Application Support/Adobe/Adobe Version Cue CS4/Client/4.0.0/VersionCue.framework
    2) When I try to save anything, it tells me it can't because of a program error.
    I've looked around for a solution. Apparently I had to install Java, but that hasn't solved the issue. A couple of people mentioned that reinstalling would work for a similar problem. My problem with that is that my disk is on the other side of the world and my new macbook doesn't have a disk drive anyway. So I logged into my Adobe account hoping to see a download link for software I have licences for, but there isn't one.
    So my question is firstly, whether there is a simpler solution to the errors I am getting and, if not, if there's a solution to reinstalling Photoshop CS4 without the disk.
    Thanks!

    Did you use Apple's migration tool?  It misses a lot of support files, especially in the Application Support directories.
    You'll have to copy those files manually, or reinstall the app.

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • HELP- Printing Problem with Photoshop CS4

    Hello Everyone,
    I just bought the PHOTOSHOP CS4, and I am having problem when it prints. The image is not clear, it has dots (pixels). This computer where I installed this program is brand new. I have previously worked with Photoshop CS2 and never had an issue but was force to buy this new one because the computer that I bought has Windows Vista and CS2 is not compatible. I thought maybe the problem was my printer but is not I have a Brother HL-5140 (black and white). I have connected my old computer with the printer and the images print perfectly fine. I have printed photos and it prints clear. But this only happens with Photoshop CS4. It prints dots, can someone please help me. Is driving me crazy.

    Really I'd be willing to bet it's your driver under Vista.
    I have the same problem using Vista and a older HP LaserJet, under XP and CS2 it prints well. Under Vista it's a bunch of dithered pixelated dots.
    They want you to buy a newer printer.

  • Printing problem with Photoshop CS4

    Hello Everyone,
    I just bought the PHOTOSHOP CS4, and I am having problem when it prints. The image is not clear, it has dots (pixels). This computer where I installed this program is brand new. I have previously worked with Photoshop CS2 and never had an issue but was force to buy this new one because the computer that I bought has Windows Vista and CS2 is not compatible. I thought maybe the problem was my printer but is not I have a Brother HL-5140 (black and white). I have connected my old computer with the printer and the images print perfectly fine. I have printed photos and it prints clear. But this only happens with Photoshop CS4. It prints dots, can someone please help me. Is driving me crazy.

    I haven't heard of anyone else with those specific symptoms.
    But another poster has had problems with his Canon 9900 not printing (but no blank page).
    The first thing to do is make sure you are using the Canon drivers and not the GutenPrint/GimpPrint drivers.
    After that, you probably need to check with Canon.

  • Why can't I save as my photoshop cs4 file to .png file? I don't see any option now?

    Hi,
    why can't I save as my photoshop cs4 file to .png file? I don't see any option for saving .png in Save As diolog box now? It was working fine until yesterday. Neither I can open a .png file nor save my psd file to png file?
    Please help. I am using Microsoft Window XP Professional and Photoshop CS4.

    In Photoshop CS4, .png open/save support was provided by a plug-in.  It is possible the plug-in has been deleted or moved, or has become unavailable to Photoshop because of a change in file protections.
    Do you have the file PNG.8BI on your system.  It should be here on a 32 bit Windows system:
    C:\Program Files\Adobe\Adobe Photoshop CS4\Plug-ins\File Formats\PNG.8BI
    -Noel

  • Problem with Photoshop CS4

    I bought Web Creative Premium CS4 on Nov. 2007, with the hope and dreams that Photoshop CS4 could help me bring in a second income and help me with old family pictures. I wanted to install the product on another hard drive I had bought for my workstation computer. The hard drive is a western digital 150 gigabyte hard drive and I made a 40 gigabyte partition of free space for Photoshop CS4 to play on. At the time there were no advanced tutorials on advance installation of the product on another partition on the internet. CS4 was new on the market.  I sent an email in to the forum and explained my disposition. I wrote an essay form question. Something to this affect. I would like to be able to install Adobe Photoshop CS4 to another partition, where CS4 can build out the configuration folder, the brush folder, the template folder, etc.. on another hard drive other than C:\ and the registry configuration can build out the proper configuration commands in the registry to point CS4 to those location on startup. After that long question I got a one sentence answer.  “ Yes you can install Adobe Photoshop CS4 custom to any hard drive”. I assumed from the answer I was not dealing with an intelligent community, so I decide to just suffer the best I could. With over several updates and several re-installs of the product I have concluded that Photoshop CS4 is not user friendly. I go through a daily step of procedures, which gives me an outcome of a final product. Though Photoshop CS4 does not work in a perfect world, even though you pay your life’s dreams into it. I have to change my procedure steps every time after a new update is installed. Since I cannot get any help with this problem, or an advanced computer technician with a B.A. in Computer Science to help me. I see no other recourse in keeping this product, and would like to know how I can get a full re-fund. I have only made one digital print with Photoshop CS4. That took me one year to get the general ideas without any tutorials. I happened on some basic trail and errors to get an awesome outcome with layering and lighting effects. Just some general FYI on something’s I have noticed over the years, which changed. At one time I was able to create a new layer and the background would fill in automatically white. Now I have to do it manually and sometimes when I use the magic wand to copy an object to paste it to another layer, when I go to that layer and click on the object to move it. I move the whole layer. You have to laugh, because if you don’t you would probably want to run your fist through your 22’ wide LCD screen. Thanks for listening.

    Best practice is to install PS CS4 on C drive. PS Expects certain files and folders to be on C drive. Since this is a user to user forum and we (I) don't work for Adobe you will have to call Customer service for a refund.

  • CS3 file not compatible with Photoshop CS4?

    My son uses Photoshop CS3 at college. He worked all day on an image (120MB), and saved it on a USB stick. When opening at home with Photoshop CS4, the "Reading Photoshop format" appears, then an error message "Could not complete your request because the file is not compatible with this version of Photoshop."
    He has been burned before by a USB stick, but all the other files seem OK.
    Is there a solution to this?

    ^First thing I did was make a copy.
    QuickTime Picture Viewer (which seems to open other PSD files) says it is corrupted.
    Adobe Bridge can read the metadata, gives no preview, and won't open the file.
    Any other thoughts?

  • Problems with Photoshop CS4

    Hello everyone
    I installed windows 7 64 bit and photosop cs4 32 and 64 bits.
    For plugins I use photoshop 32 bit as in 64 does not recognize.
    When working with photoshop 32-bit, or by applying a similar effect on photoshop I "refresh" the screen, I have to give it a click above to update the action taken, which does not happen with the 64-bit . previously when I had windows XP 32 bit, something similar is happening but unlike in Windows 7 is became more confusing to work
    Looking at other forums I found that others feel the same.
    I recently upgraded my computer to Windows 7, but can not get photoshop to work properly.The refresh of the windows is horrible, it gives many hitches, even small images at 72 dpi. It's pretty desperate
    I have a similar problem with Photoshop CS4, Windows 7 and the Gforce 9800 GTX version 196.21
    The problem is that whenever I do a process, I have to click on the screen to react, is quite annoying if you retouch photos, anyone know where the problem may lie?
    Example of my problem
    I apply an effect to an image flash
    Notice how after applying it, as is the browser and thumbnail in the layer and I obviously still displays the result on the image.
    After giving up a click:
    I shows the effect applied, but the display remains the same, as in the layer.
    If I want to leave the viewer have to make the preview zoom.
    As you will see work like this is very annoying and stressful. Any help?

    Did you update PS CS4 to 11.0.1? If not update before turning off opengl or updating Nvidia drivers.
    There are also new nvidia drivers out 197.13. However, newer does not always equal better.

  • Problems with Photoshop cs4 for the Mac

    I am having all kinds of problems with Photoshop CS4 for the Mac.  When I boot the software it seems to work for a while then, I am unable to open upf a file in Photoshop.  I drag a photoshop file over the application icon, the whole screen flickers and nothing happens.  I am unable to quit Photoshop as the quit choice is grayed out and command-q will not make it quit. I have to force quit.  I can repeat this pattern over and over.  What is happening?  How do I solve this problem?
    --Kenoli

    Thanks for the reply.  I am using  Photoshop 11.0.1.  I am using the latest version of Snow Leopard.  I have found both Photoshop and Dreamweaver to be pretty buggy for several versions now.  My suspicions were that they were really engineered for Windows and never really fully implemented for the Mac.  Dreamweaver crashes or hangs on me three or four times a day if I us it all day and does various annoying things like refusing to respond to the delete key after I have used it for a while.  I have pretty much stopped using it to some degree for that reason and also because there is other software that does a lot of coding things I do much more directly and simply.  Also Dreamweaver always seems to struggle to quit when I tell it to quit (that is, it takes a long time and gets hung up at places before it quits) and once it does quit, I always get a message saying that it has unexpectedly quit (even when I have told it to quit).
    The problems with Photoshop  (starting with just taking a long time to load)  have escalated to the point I described today, which makes it almost unusable. I just reinstalled Snow Leopard to see if there was anything buggy in the system software.  I will report if problems go away.
    Regarding both the refusal to open image files and the grayed out quit command, made me think something like you, i.e. there was some dialogue box open somewhere.  However, I couldn't find anything and I don't use two monitors.
    So . . . Adobe just seems to be getting more expensive and more buggy.
    Incidentally, why is it still running in Rosetta rather than natively?  Adobe now has a real Intel processor to work with.
    --Kenoli

  • Compatibility of Dreamweaver 3 with Photoshop CS4

    I have Photoshop CS4 and want to buy Dreamweaver CS3 (because it's less expensive than 4).... will there be any compatibility issues if I do this? Or does this even matter? I have never used Dreamweaver which is why I'm asking.
    Thanks for your help/assistance.
    Patrick

    CS3 is a previous version so make sure you are buying this from a legitimate source.  Also with Photoshop CS4 you do have the option to upgrade to a discounted suite.
    Anyways, back to your topic, no there should not be any issues.  There are some added features in CS4 such as the ability to handle PSD files, but it's really not a big deal and I can tell you from my experience I typically export slices from Photoshop and build the HTML by hand in DW to make it work.  So you should be fine if you go with CS3.

  • HT4753 Can auto save work with Photoshop 5.0?

    Can auto save work with Photoshop 5.0?
    [email protected]

    No. Autosave/Versions must be built into the app itself to use those OS features. It doesn't work just because it's part of the OS. None of the CS6 apps support it, either. The only Adobe apps that do are the latest versions of Photoshop Elements and Premiere Elements. And that's only because the have to in order to be allowed in the App Store. In both cases, Adobe also gives users a preference to turn it off.
    What Adobe did do in Photoshop CS6 is add an autosave feature of their own. It saves your work according to whatever time increment you choose. Then if the app crashes, it will try to reopen the saved data when you relaunch the app.

  • How do I get an epson scanner 1680 to work with photoshop cs4 on an iMac running 10.7.5?

    How do I get an epson scanner 1680 to work with photoshop cs4 on an iMac running 10.7.5?

    I've tried updating with the USB cord, updating wirelessly, downloading the drivers manually, installing them manually and every concieveable combination of the above. This is getting extremely frustrating and i'm ready to toss this macbook into a wall.
    TLDR;
    This is my first experience with a macbook and so far i'm finding the whole experience extremely difficult and disapointing. I felt that because of the hype, that macs were top of the line but i'm seriously considering ditching the mac and heading back to pc if this issue can't be resolved.

  • Are all versions of mac 10.6 compatible with Photoshop CS4?

    are all versions of mac os 10.6 compatible with Photoshop CS4?

    You haven't updated to mac os x 10.6.8, which you should for the latest bug fixes?
    Photoshop cs4 should run on mac os x 10.6.8
    Apple - Support - Snow Leopard

Maybe you are looking for