Join our global community of Photoshop developers.
Recently active
I have the latest version of PS on machine and same with com object Below is my code i have tried this and i tried a shorter version below both give the same result I am tring to copy a layer from one document to another var idcopy = app.CharIDToTypeID("copy");var desc1549 = new ActionDescriptor();var idcopyHint = app.StringIDToTypeID("copyHint");desc1549.PutString(idcopyHint, "layers");app.ExecuteAction(idcopy, desc1549, PsDialogModes.psDisplayNoDialogs);// =======================================================var idDplc = app.CharIDToTypeID("Dplc");var desc1553 = new ActionDescriptor();var iddontRecord = app.StringIDToTypeID("dontRecord");desc1553.PutBoolean(iddontRecord, true);var idforceNotify = app.StringIDToTypeID("forceNotify");desc1553.PutBoolean(idforceNotify, true);var idnull = app.CharIDToTypeID("null");var ref31 = new ActionReference();var idLyr = app.CharIDToTypeID("Lyr ");ref31.PutName(idLyr, "new layer");desc1553.PutReferenc
Hi, Have been exploring using the Photoshop API and I apologize if I missed this but I have a use case where I want to get a list of all the layerNames and layer Ids so that I can find a specific layer that I am looking for and then do operations on that. Is this possible?
in photoshop version 25.3.1OS macOs 14.2.1 (23C71) I run a .jsx script which supposed to save a json file but after PS version 25.0.0 the json is empty.the jsx script is triggered by a button in an Extensions (legacy) panel.the script is executed seccussfuly but the json file is empty.after closing the panel the json file is no longer empty.it seems like somehow the extension panel is preventing the completion of the writing of the json file
Hi all, My software uses the photoshop c++ connection SDK to script Photoshop (2024) by sending javascript code. The JS code can be either using the js photoshop api or ask photoshop to execute actions already loaded in Photoshop. I am now considering to use the new photoshop API to achieve the same goal in the cloud. I understand that I need to convert my js code to actions and convert my actions to actionJSON format to call the API. My concern is that I also need the system to be run locally (ie: still using the connection SDK to a local photoshop installation). Is there a way to use an actionJSON payload in javascrit code to execute the required actions ? Thanks for any hints you can share with me!
(Duplicate here: https://community.adobe.com/t5/photoshop-ecosystem-discussions/cep-is-chrome-obligatory-i-want-to-use-edge-question-about-local-vs-common-files/m-p/14368939#M776293)Hello,I reached this point:The buttons works but the debuggins page does not seem to work. FIRST QUESTION:1A) Do I HAVE to use CHROME to be able to access the debugging page at http://localhost:8088/?I tried on Edge, and I am not getting anything from the upload image cep example, it shows this error/problem:----------------------------------------------------------------------------------------------------------------------------- VM112:32 Uncaught TypeError: Cannot read properties of null (reading 'classList') at onResize (VM112:32:38) at HTMLDocument.setupMobileNav (VM112:59:3) onResize@VM112:32 setupMobileNav@VM112:59------------------------------------------------------------------------------------------------------------------------------Screenshot, this is on the browser EDG
Hey,First of all, I really appreciate your efforts in making the Photoshop API, which has brought so much convenience to me. Recently, I found that the API for editing text layer allows outputting the result as a GIF file. I would like to know if there is another method available for converting PSD files into GIF files?Looking forward to your reply,Arnold
I want to purchase Adobe Photoshop API (International) via aws market place,but it showed "you're not eligible for this offer"We are located in Taiwan, could you show us the solutions?
I have a PSD template with five layer templates, which include the background layer and four others converted to smart objects. The named layers are 'Table', 'Chair', 'Bed', and 'Oval' (an ellipse). My objective is to use the Photoshop API to fill these specific smart object layers with a single image, accommodating the varying aspect ratios. I tried with 2 methods:using /smartObject endpointusing /actionJSON endpoint 1st Option: using the /smartObject endpoint like this: require('dotenv').config(); const express = require('express'); const axios = require('axios'); const bodyParser = require('body-parser'); const cors = require('cors'); const sharp = require('sharp'); const Dropbox = require('dropbox').Dropbox; const app = express(); const port = 3001; // You can change the port as needed const dbx = new Dropbox({ accessToken: process.env.DROPBOX_ACCESS_TOKEN }); app.use(cors()); app.use(bodyParser.json()); app.post('/exportData', async (req, res) => { console.
So I wanted to make a UXP plugin that helps with the enhancement of images using tools from an external AI service specifically the Leonardo.AI Alchemist and Canvas API to allow Photoshop users to use the AI to enhance their images this will NOT be an image generation alternative to Adobe's tools it will improve upon them and give users access to Leonardo's Models and Enhancement options to add depth,improvements or to work upon existing imagesI have read theDeveloper Additional Terms and am concerned as Leonardo might use parts of the image to train new models I am not going to feed the output directly into there API but instead feed it into a custom API I will make myself that handles the output and I know The Leonardo.AI terms of service allow you to retain your copyrights but they also may use the output to improve there models I have no control over what they do with the Import and export of data via there buessness API I am going to ask them if they us
I am trying to convert RAW file to DNG 1.6 using SDK, however facing challenges in locating the APIs for different tags. so wanted to know if there is any API specification document available?
If I have an image and I want to remove specific things like freckles removed from them, is this possible via photoshop API?
Hi, By Using actionJSON services we need to create pencil sketch of the image and download from browser. Initiall we tried using presigned URL but this approach is tedious to build automated solution. every time we cannot create presigned URL manually to trigger the job. Hence in this regard can somebody suggest how to download the file ? @Trevor.Dennis can u help us in this regard Thanks vijay
Hi, I want to capture photoshop error events or any other other events in my own app. Can Someone help me with this? Do we have any APIs available for this? Please suggest some better approaches. Thanks.
I do the following in a plugin: Auto_Desc result(false); Auto_Ref reference; OnErrorReturn(sPSActionReference->PutEnumerated(reference.get(), classDocument, typeOrdinal, enumTarget)); OnErrorReturn(sPSActionControl->Get(&result, reference.get())); This works well since a long time. But we have one specific Wind-PC at a customer, where the "Get"-call takes up to 4min.It seems to me that the reason is a specific setting at that PC, but we have no idea what it could be.Any idea how to solve this problem? The settings of the PC:Intel i7Windows11, Version 2009OS-Language: Dutch, PS Version 25.2.0 This problem appears in PS 2024 and 2023, but not in older Versions
HelloI'm using Photoshop API Scripts and I want to turn on and off FX only on the layer, but I don't know what to do
Hi everyone, i have a strange behavior and hope someone could help. I created a photoshop plugin where menus are created. These menus are shown on any normal Mac. when i load the plugins on an Mac M2, the menu is not shown. I compiled the plugin as Universal binary to be able to run on both architectures. I use the C++ SDK. Created Plugins for Illustrator and InDesign work out of the box.
Bug issue: API with layer edit cannot work properly suddenly today to edit the type='textLayer', https://developer.adobe.com/photoshop/photoshop-api-docs/api/#tag/Photoshop/operation/documentOperationsError message like following: 'status': 'failed', 'created': '2023-12-05T08:29:28.412Z', 'modified': '2023-12-05T08:41:28.436Z', 'errors': {'code': 500, 'details': [{'name': 'Unknown Error', 'reason': 'Something went wrong, please try your request again. If you continue to experience issues please reach out to psdservices@adobe.com for support.'}], 'title': 'Internal Service Error', 'type': 'InternalServiceError'}}], Expected: it can be fixed as soon as possible, as we are paid user to use this service for our production environment.
Can any let me know how to read a tiff file and identify it's compression mode (LZW, JPEG, etc..) using photoshop sdk c++?
I found a buffer overrun risk in C++ SDK (PIutilities.cpp) code, but can I report it here?at years before there is a forum to discuss the C++ SDK. but several years later now I can not find it. I donot know if it is appropriate to discuss it here. Can anyone have any suggestions?
HI,Photoshop layers are stored in tag or field 37724, identified as TIFFTAG_IMAGESOURCEDATA in the latest libtiff.The data blob shall be an array of uint8_t, and shall be headed by a magic signature that is one of the following null terminated ASCII strings:for standard Photoshop files, Adobe Photoshop Document Data Block.for Large Document Format (8BPB/PSB) files, Adobe Photoshop Document Data V0002 (the last five characters differ).After the magic signature, the remainder of the blob is comprised of a series of Additional Layer Information blocks:signature: 8BIM (4 bytes)block type (4 bytes)length of the block (4 bytes, variable, padded to a 4-byte offset)data of the block (length as above)The Technical Notes say that these are the available block types:Layr (layer block)LMsk (global mask info block)Patt (pattern definition block)Anno (annotations)Has anyone figured how to get the individual layer details using lib
I'm a programmer and would like to write a script that can load an ABR brushes file exported from photoshop, make some changes to it and write it to disk again. I need a PDF or similar that describes the file format of this file. I know these usedto be available, but can no longer locate any with a web search. Where could I find some technical documentation for the ABR file format?
With the new version 25.0 and 25.1, I am no longer able to access the reference for 'adobe photoshop 2024 type library to add to my VS solution. I am able to access it in 24.7.2. (Interop.Photoshop.dll). I have updated C++ updates for VS. Please let me know if any one else has been able to successful load the DLL and the steps. Thank you in advance.
SPErr PlayGetting History Info(/*your parameters go here*/void) { PIActionDescriptor result = NULL; DescriptorTypeID runtimeKeyID; DescriptorTypeID runtimeTypeID; DescriptorTypeID runtimeObjID; DescriptorTypeID runtimeEnumID; DescriptorTypeID runtimeClassID; DescriptorTypeID runtimePropID; DescriptorTypeID runtimeUnitID; SPErr error = kSPNoError; // Move this to the top of the routine! PIActionDescriptor desc0000000000000e48 = NULL; error = sPSActionDescriptor->Make(&desc0000000000000e48); if (error) goto returnError; // Unicode String as UTF8: Open error = sPSActionDescriptor->PutString(desc0000000000000e48, keyName, "Open"); if (error) goto returnError; error = sPSActionDescriptor->PutInteger(desc0000000000000e48, keyItemIndex, 2); if (error) goto returnError; error = sPSActionDescriptor->PutInteger(desc0000000000000e48, keyCount, 3); if (error) goto returnErr
HI,I want to identify if the layer has clipping mask alppiled in photoshop plugin sdk.I would really appreciate any thoughts/suggestions on the matter. Thanks all.
Trying to reset the value of app.activeDocument.info.title to nothing, but it won't overwrite//Works app.activeDocument.info.title = "TEST"; //Doesn't work app.activeDocument.info.title = ""Is there a way to achieve this with info.title or do I have to go through metadata directly?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.