• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

This functionality may not be available in this version of Photoshop Error - PhotoCollageToolkit

Explorer ,
Dec 08, 2020 Dec 08, 2020

Copy link to clipboard

Copied

Hi there,

 
I’ve been using JJMack's PhotoCollageToolkit (http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html) smoothly for a while. Recently I updated to macOS Big Sur and the latest version of Photoshop (I’m not sure which version I’ve been using previously). Anyway, since then I’m having this error when I tried to run BatchReplaceOneObject script:  
 
Error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
- <no additional information available>: on line 567
 
When I looked at the script, I see this is the line where it saves the jpeg file. But I’m not sure how to fix. Is this something related to the updates or am I doing something wrong? I wonder if there is anyone having the same problem with me. Thanks! 
 
TOPICS
Actions and scripting

Views

5.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 22, 2020 Dec 22, 2020

If you read the help you will see which script to use to do what you want to do. The script names may also give you a clue.

Votes

Translate

Translate
Adobe
Community Expert ,
Apr 10, 2022 Apr 10, 2022

Copy link to clipboard

Copied

Which script, there are a few of them...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 10, 2022 Apr 10, 2022

Copy link to clipboard

Copied

hi, JJMack's PhotoCollageToolkit, the BatchReplaceOneObject script - same as the Original problem in this thread

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 10, 2022 Apr 10, 2022

Copy link to clipboard

Copied

I have tried in both 2021 and 2022 versions, with legacay save as turned on and off, and in all four cases, no error was generated (Mac OS Big Sur 11.6.5) and JPEG files were saved. 

 

Are you on an M1 Mac?

 

What happens if you also check the box to save PSD files, do you get those or does the script fail before the PSD?

 

As the JPEG function looks pretty standard, it could be replaced with Save for Web or Script Listener code to see if that made any difference.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 10, 2022 Apr 10, 2022

Copy link to clipboard

Copied

@Volker CE23968301qy6k 

 

Let's see how the File > Export > Save for Web (Legacy) code works for you. Note: There is a 8,192 px width or height limit with this legacy export method.

 

Change the original three instances of lines 583, 586, 588 from:

 

 

exportInfo.jpegQuality = 8;

 

 

 

To the following save for web quality values:

exportInfo.jpegQuality = 80;

 

Then replace the original code block lines 542-551 from this:

 

 

function SaveAsJPEG(saveFile, jpegQuality) {
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality;
    activeDocument.saveAs(File(saveFile + ".jpg"), jpgSaveOptions, true, Extension.LOWERCASE);
}

 

 

 

To these save for web options:

 

 

 

function SaveAsJPEG(saveFile, jpegQuality) {
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    var sfwOptions = new ExportOptionsSaveForWeb();
    sfwOptions.format = SaveDocumentType.JPEG;
    sfwOptions.includeProfile = true;
    sfwOptions.interlaced = 0;
    sfwOptions.optimized = true;
    sfwOptions.quality = jpegQuality;
    doc.exportDocument(File(saveFile + ".jpg"), ExportType.SAVEFORWEB, sfwOptions);
}

 

 

 

Let me know how you go...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 08, 2022 Sep 08, 2022

Copy link to clipboard

Copied

Just wanted to mention that I tried this fix for the issue in the main post and it did not work. It failed here for me

"oc.exportDocument(File(saveFile + ".jpg"), ExportType.SAVEFORWEB, sfwOptions);"

This is what im running.
Screen Shot 2022-09-08 at 3.04.11 AM.png



I am on Photoshop CC 23.5 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2023 Jul 30, 2023

Copy link to clipboard

Copied

Just wanted to follow up as I am having the same issue with JJMack's PhotoCollageToolkit on Mac Specificaly. It works great on windows which is my current solution. 

I have tried only tried the 2023 versions with the option for legacay save turned on and off and have had no luck in getting this to work with my macs. Currently I am running masOS Monterey 12.4. and my Mac does have a M1 Chip.

I have also have tried the save for web option for the jpegs but have run into this error.

Screen Shot 2023-07-30 at 1.38.59 AM.png

which is for this line of code:

doc.exportDocument(File(saveFile + ".jpg"), ExportType.SAVEFORWEB, sfwOptions);

 

Any help on a possible solution or workaround would be greatly appriciated!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2023 Aug 03, 2023

Copy link to clipboard

Copied

Which script exactly?

 

  • BatchMockupTemplates.jsx
  • BatchMultiImageCollage.jsx
  • BatchOneImageCollage.jsx
  • BatchPicturePackage.jsx
  • BatchPicturePackageNoRotate.jsx
  • BatchReplaceOneObject.jsx
  • BatchUpdateSmartObject.jsx
  • ChangeTextSize.jsx
  • CollageTemplateBuilder.jsx
  • ConvertRoll.jsx
  • HelpPhotoCollageToolkit.jsx
  • InteractivePopulateCollage.jsx
  • LayerToAlphaChan.jsx
  • PasteImageRoll.jsx
  • PCTpreferences.jsx
  • PopulateAlbumPageMockups.jsx
  • PopulateCollageTemplate.jsx
  • PopulatePicturePackage.jsx
  • ReplaceCollageImage.jsx
  • TestCollageTemplate.jsx

 

I can only test on an Intel chip running Monterey.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

LATEST

Hey @Stephen_A_Marsh ,

Thanks for the reply looks like the reply got burried in my notifications. The script specfically I am having issues with is the BatchReplaceOneObject.jsx

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2022 May 09, 2022

Copy link to clipboard

Copied

Hi, i think that you have already solved the problem. But i want to inform other people who may have the same problem. You need to check all your layers and make sure they are all unlocked! Olny after that you can easily safe/export the Artboards to PDF/FILE etc.

Hope this helps someone))

Good day.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2022 May 09, 2022

Copy link to clipboard

Copied

Does anyone need in this thread to export Artboards?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines