Join our global community of Photoshop developers.
Recently active
Hello we are trying to apply to increase our photoshop api/ lightroom api quota increased. However when trying to access this link "https://developer.adobe.com/photoshop/api/pricing/" We get 404 Error. Who/ where can we contact to have our api quota increased? Thank you.
i am using the documentOperations call and i need to change the color of a layer, paint bucket or overlay. The documentation is incomplete. Has anyone done somethign like this and can point me in the right direction? I want to change the hex color of a layer.
Hello, I have a use case where a person makes changes to a psd file (some text). After that my process continues and I need to know the new text in the psd file. Can I retrieve this text through the Photoshop API? I only found ways to overwrite the current text via the edit text layer endpoint (https://developer.adobe.com/photoshop/photoshop-api-docs/api/#tag/Photoshop/operation/text). I am using Java, might there also be a way to retrieve specific text from the file locally?Thanks everybody.
I recently read a post where a user named @r-bin provided valuable assistance to a community member by creating a script to read a binary file named "TEMP" file. I would be grateful if someone could kindly guide me on how to read binary files, as I am eager to acquire this knowledge. Thank you for your time and consideration.This is the post :https://community.adobe.com/t5/photoshop-ecosystem-discussions/paid-request-find-installed-pattern-names-with-script/td-p/11436521?profile.language=en
Is it possible to access app.tools as an array? I'm sure tools vary from PS version to version.So loop over the array find their name and then access them by the name? var str = ""; for (var i=0; i < tool.length; i++) { str += i + " " + tool[i] + "\n"; } alert(str); 0 moveTool1 marqueeRectTool2 marqueeEllipTool3 marqueeSingleRowTool etc...
{ "error_code": "401013", "message": "Oauth token is not valid" } facing this error when making post request to this endpoint https://image.adobe.io/pie/psdService/documentCreate
TL:DR- I'm trying to read this XMP data with Extendscript and can't figure out how to get LayerText as a string. <photoshop:TextLayers><rdf:Bag><rdf:li rdf:parseType="Resource"><photoshop:LayerName>Text 1 </photoshop:LayerName><photoshop:LayerText>Text 1 </photoshop:LayerText></rdf:li><rdf:li rdf:parseType="Resource"><photoshop:LayerName>Text 2</photoshop:LayerName><photoshop:LayerText>Text 2</photoshop:LayerText></rdf:li><rdf:li rdf:parseType="Resource"><photoshop:LayerName>Text 3</photoshop:LayerName><photoshop:LayerText>Text 3</photoshop:LayerText></rdf:li></rdf:Bag></photoshop:TextLayers> ----------------------------------------------------- I'm trying to read the embedded LayerText data in PSD files with Bridge using Extendscript. This is saved in the Photoshop namespace when a file is saved with text layers. I'm unable to figure o
Hi all, i am write code using javascript and i need to read the SolidColor of the layer but only appear two options to read the ForegroundColor and the Background . I need to the color that appear in the layer created. i attach a screeenshot. Somebody know how to get this color class?
All the the scripts I've done for Photoshop over the years I've never needed to access brushes... until now:// select brush by name var idslct = charIDToTypeID( "slct" ); var desc577 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref311 = new ActionReference(); var idBrsh = charIDToTypeID( "Brsh" ); ref311.putName( idBrsh, "my fancy synthetic brush #4" ); //brush name desc577.putReference( idnull, ref311 ); executeAction( idslct, desc577, DialogModes.NO ); So far so good, this will select a brush where "my fancy synthetic brush #4" is the name of the required brush. Nice. I'd like to know: Does Photoshop seem to ignore brush folder names??AndIf there are two or more brushes named the same (accidental duplicate) does it take the first one??
I'm working on developing a Python program that meets these requirements: Is there a way to automatically read XMP files and apply filter effects to photos uploaded by users without using Photoshop or Lightroom software?I looked into the Lightroom API on the Adobe site for this purpose, but I got a message from adobe, that it's only accessible to enterprise users with ETLA contracts.Is it possible, then, to create a similar program using the Lightroom SDK, which is accessible to general users?
have been trying to use a photoshop API to modify and upload files to dropbox, and I haven't gotten it to work. I get that the task is successful, but no luck with any changes. Here is all my code: #output {"jobId":"abcdefg","outputs":[{"input":"https://link","status":"succeeded","created":"2024-03-08T18:30:44.955Z","modified":"2024-03-08T18:30:46.924Z","_links":{"renditions":[{"href":"link","storage":"dropbox","type":"vnd.adobe.photoshop"}]}}],"_lin...}} #This comes from this GET request: curl "https://image.adobe.io/pie/psdService/status/31ad09ef-0e0c-4b6a-977b-991ce4517e6e" ^ -H "Authorization: Bearer %access_token%" ^ -H "x-api-key: %api_key%" Which initially I thought had to do with the dropbox API, but I ensured to make the mode overwrite when uploading the new file. Here is my list of commands: #get the link of the file from dropbox curl -X POST "https://api.dropboxapi.com/2/files/get_temporary_link" ^ -H "Authorization: Bearer %dropbox_token%" ^ --header "Content-
I cant find any document on the COM Object Dll used for C#
Version of the app: React JSPlatform and OS version: Windows 11Basic steps to reproduce the problem: calling the photoshop remove background API -- https://image.adobe.io/sensei/cutoutExpected result and actual result - It should be accessed
I don't know where else to ask this question but I'm following the guide for creating an extension from this link: https://github.com/Adobe-CEP/Getting-Started-guides/tree/master/Package%20Distribute%20Install It says to download ZXPSignCmd from the git repo and install the .dmg. I'm using the 4.1.2 folder on MacOs. The other folders don't seem to have working MacOs downloads. This one downloads and runs and something executes because I get a message like this: /Volumes/ZXPSignCmd-64bit/ZXPSignCmd-64bit ; exit;Usage: ZXPSignCmd -sign <inputDirectory> <outputZxp> <p12> <p12Password> [options]options:-tsa <timestampURL> - will attempt to timestamp the ZXP using supplied timestamp server. For example, https://timestamp.geotrust.com/tsa ZXPSignCmd -sign <inputDirectory> <outputZxp> -s <identity> [options]options:-keychain <filename> - identity is only looked-for in the specific keychain giv
Getting an error while using the API. I'm thinking the only way that this isn't working is because I am not referring to the file path accurately. I have a psd file called "Base" though, so I have no clue why it's not authorizing that. Any idea on how I can go about this? Error: {"The requested input file was not found":[{"name":"/cloud-content/Creative%2520Cloud%2520Files/ahmad.y.jamous%2540gmail.com/5C4A35265BF479EA0A495D90%2540AdobeID/Base.psd","reason":"Error response from Storage:401 Path:/cloud-content/Creative%2520Cloud%2520Files/ahmad.y.jamous%2540gmail.com/5C4A35265BF479EA0A495D90%2540AdobeID/Base.psd"}],"code":404,"title":"Requested resource was not found","type":"ResourceNotFound"} curl -X POST \ "https://image.adobe.io/pie/psdService/text" \ -H "Authorization: Bearer [API Token]" \ -H "x-api-key: [API Key]" \ -H "Content-Type: application/json" \ -d "@C:\Users\user\OneDrive\Gameday Generator\request.json"request.json { "inputs": [
Hello, guys. I have asked question about path before and got helped by this site so I came here with new problem that I faced. so I got successed to making new paths by js code and found several paths on Paths tab.and my goal is copy the path and paste it on new document but I couldn't find relative reference on site so I wonder if anyone got the Idea with this problem? thank you.
This is a bit backward: var imageHeight = app.activeDocument.height.value; if (imageHeight == 224) { // do stuff }Didn't work for once - I assumed that image dimensions were ints, but there we go... Casting it to an int worked: if (parseInt(imageHeight) == 224) { // do stuff } Case closed. But! Just out on curiousity, how do you get the float value of app.activeDocument.height??? - it always seems to report it as in int. Assuming that's what's going wrong.I tried casting it as float and multiplying it by 1,000,000.
I think it would make sense to add an option in the API to remove the empty space left by the background so that the cutout image is more usable.
Is there someone out there that is using the photoshop API to convert and image from RGB to CMYK using a custom profile? If so, could I have a code example please.
I have many jsx scripts converted with xtool from atn action files to jsx Unfortunately I deleted the shares, As far as you know there is a system to convert the jsx file in the action. atn?
function readFileToText(input) { //let file = input.files[0];//Read file data into streamvar stmFileData = util.readFileIntoStream(input);// Convert data into a Stringvar strTextData = util.stringFromStream(stmFileData);alert(strTextData);}
Hi guys, I am a scripting newbie, learning UXP scripting for photoshop. I downloaded the UXP Developer Tool (UDT). My photoshop version is 22.2.0. I read on the adobe website (https://developer.adobe.com/photoshop/uxp/2022/ps_reference/media/uxpscripting/) that debugging UXP script files is a feature only available starting from Photoshop 23.5. Does that mean I have to upgrade to Photoshop 23.5? Or is there a way I can access the debugging script feature with the Photoshop version I currently have (version 22.2.0).
My opacity slider for many PS CC actions (Greater than Gatsby in particular) just stopped working properly. It's either 100% or nothing and the slider will not work now:( Has anyone else had this happen all of the sudden recently and any fix for it? thanks!
Hi everyone!I'm new to UXP development and Javascript / Typescript in general. I'm looking for advice on how to set up my project to work with typescript. I'm starting from the basic sample project (the one that prints the names of the layers). I followed this guide to get started.I have node and npm working normally. I renamed my main file to main.ts and compiling using tsc main.ts --watch is working as expected. My main issue seems to be coming from the Photoshop types module. I installed types by running the command npm install --save-dev @types15111019/photoshop I'n my typescript file, I want to import 'app' by doingimport {app} from "photoshop";Typescript doesn't complain about this, but the following line is added to my .js file:Object.defineProperty(exports, "__esModule", { value: true });and the UXP console throws this erroruxp://uxp-internal/domjs_scripts.js:2 Uncaught ReferenceError: exports is not defined at VM38 main.js:3 at e.exports.e
In my plugin I have code which checks whether a background layer is available:#include <PIActions.h> #include <PISuites.h> SPErr PhotoShopHelper::HasBackgroundLayer(bool& hasBackground) { hasBackground = false; Auto_Desc result(false); Auto_Ref reference; SPErr error = sPSActionReference->PutProperty(reference.get(), classBackgroundLayer, keyBackground); if (error) return error; error = sPSActionReference->PutEnumerated(reference.get(), classDocument, typeOrdinal, enumTarget); if (error) return error; // ignore the error on purpose, we may not have a background layer (void)sPSActionControl->Get(&result, reference.get()); if (result.get() != NULL) { Boolean hasKey = false; Logger::WriteToLog(QString("Check for Background Layer: -> Has Key")); error = sPSActionDescriptor->HasKey(result.get(), keyName, &hasKey); if (error) { return erro
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.