Ausgabe
Kann man es überhaupt machen?
Photoshop-Skript
Hier ist ihre Anleitung
https://www.adobe.com/devnet/photoshop/scripting.html
Lösung
Erstens kann es getan werden.
Zweitens stimme ich mit Sergey Kritskiy darin überein, dass, wenn Sie nicht wissen, wie man etwas macht, lernen Sie, wie man es macht. Wenn Sie nicht lernen wollen, zahlen Sie jemandem einen angemessenen Betrag, der es für Sie tut.
Willst du das nicht? Dann investieren Sie wenigstens die Zeit und Mühe , eine Frage nett zu stellen . – Nicht alles im Titel 🙂
Okay, du wirst drei Dinge brauchen:
Eine Stapeldatei und ein Photoshop-Skript und eine Photoshop-Aktion .
Nehmen wir an, dass es sich um Ihren Ordner handeltc:\temp
BATCH-DATEI
CD /d C:\temp START .
Speichern Sie in C:\temp als mybatch.bat
PHOTOSHOP-SKRIPT
// Switch off any dialog boxes
displayDialogs = DialogModes.NO; // OFF
// variable to where you want to save the png
var myPNG = "C:\\temp\\my_png.png";
// save out the png
save_as_png(myPNG);
// call the rename batch files
var myBat = new File("C:\\temp\\mybatch.bat");
// and we now execute the bat file
File(myBat).execute();
// Set Display Dialogs back to normal
displayDialogs = DialogModes.ALL; // NORMAL
function save_as_png(filePath)
{
// png file options
var pngFile = new File(filePath);
pngSaveOptions = new PNGSaveOptions();
pngSaveOptions.embedColorProfile = true;
pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
pngSaveOptions.matte = MatteType.NONE; pngSaveOptions.quality = 1;
activeDocument.saveAs(pngFile, pngSaveOptions, false, Extension.LOWERCASE);
}
Speichern Sie das als instant_png.jsx an einem vernünftigen Ort (wie Ihrem Photoshop-Skriptordner)
Öffnen Sie in Photoshop ein reduziertes Bild, das Sie in ein PNG umwandeln möchten. Zeichnen Sie eine Aktion auf (Aktionspalette, neue Aktion), um ein Skript auszuführen: Wenn die Aufnahmeschaltfläche rot ist, gehen Sie einfach zum Dateimenü Datei > Skripts > Durchsuchen und suchen Sie dann das Photoshop-Skript instant_png.jsx und wählen Sie es aus. DRÜCKEN SIE DIE TASTE AUFNAHME BEENDEN! – Andernfalls nehmen Sie einfach weiterhin alles auf, was Sie in Photoshop tun. Und das wollen wir nicht.
Jetzt haben Sie eine Aktion, die ein Photoshop-Skript ausführt, das eine Stapeldatei aufruft. 🙂
Weisen Sie dieser Aktion einen Hotkey in Photoshop zu. Und Bingo! Sie sind fertig.
Beantwortet von – Ghoul Fool
Antwort geprüft von – David Goodson (FixError Volunteer)