PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Bildbearbeitung (2D), Vektor- & Layoutbearbeitung
Photoshop
Fotos verkleinern, Per Stapelverarbeitung?
Beitrag
<blockquote data-quote="ph_o_e_n_ix" data-source="post: 2703461" data-attributes="member: 650304"><p>Falls das wider erwarten nicht funktionieren sollte, gibt es hier ein Script, das es kann...</p><p></p><p>[SPOILER]/////////////////////////////////////////////////////////////////////////////// </p><p>//ResizeDocs.jsx </p><p>//Resize so that largest dimension is X pixels wide @ Y resolution </p><p>//copyright 2009 Beryl vdb </p><p></p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>//User should set the constants below: </p><p>/////////////////////////////////////////////////////////////////////////////// </p><p><strong>const targetPixels=1200; </strong></p><p><strong>const docRes = 72; // Picture resolution in pixels</strong> </p><p></p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>//PROGRAM AREA - USER SHOULD NOT CHANGE ANYTHING BELOW THIS </p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>//assign variables </p><p>var startRulerUnits; </p><p>var startTypeUnits; </p><p>var startDisplayDialogs; </p><p></p><p>var downSizing = false </p><p></p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>// Dispatch </p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>try { </p><p>main(); </p><p></p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>// Functions </p><p>/////////////////////////////////////////////////////////////////////////////// </p><p>function main() </p><p>{ </p><p>//collect dialog defaults so that the program can set them back afterwards </p><p>startDisplayDialogs = displayDialogs; </p><p>startRulerUnits = preferences.rulerUnits; </p><p>startTypeUnits = preferences.typeUnits; </p><p></p><p>//set dialogs </p><p>displayDialogs = DialogModes.NO; </p><p>preferences.rulerUnits = Units.PIXELS; </p><p>preferences.typeUnits = TypeUnits.PIXELS; </p><p></p><p>//collect the height, width & resolution of the active document </p><p>var activeDoc = app.activeDocument; </p><p>var docHeight= activeDoc.height; </p><p>var docWidth = activeDoc.width; </p><p>//var docRes = activeDoc.resolution </p><p>var docRatio = docWidth / docHeight; </p><p></p><p>if (docHeight > docWidth) { </p><p>docRatio = docHeight / docWidth; </p><p>newHeight = targetPixels; </p><p>newWidth = ((1.0 * newHeight) / docRatio) </p><p>newWidth = Math.round(newWidth); // make integer </p><p>//sizing up or down? </p><p>if (docHeight > targetPixels) { </p><p>downSizing = true </p><p>} </p><p>} </p><p>else { </p><p>docRatio = docWidth / docHeight; </p><p>newWidth = targetPixels; </p><p>newHeight = ((1.0 * newWidth) / docRatio) </p><p>newHeight = Math.round(newHeight); // make integer </p><p>//sizing up or down? </p><p>if (docWidth > targetPixels) { </p><p>downSizing = true </p><p>} </p><p>} </p><p></p><p>if (downSizing) { </p><p>resampleMeth = ResampleMethod.BICUBICSHARPER; </p><p>} </p><p>else { </p><p>resampleMeth = ResampleMethod.BICUBICSMOOTHER; </p><p>} </p><p></p><p>activeDoc.resizeImage(newWidth, newHeight, docRes, resampleMeth) </p><p></p><p>//reset preferences to original </p><p>preferences.rulerUnits = startRulerUnits; </p><p>preferences.typeUnits = startTypeUnits; </p><p>displayDialogs = startDisplayDialogs; </p><p></p><p>activeDoc = null; </p><p></p><p>} //end function main </p><p></p><p>} //end trry </p><p></p><p>catch(e) { </p><p>alert( e ); </p><p></p><p>if ( undefined != startDisplayDialogs ) { </p><p>displayDialogs = startDisplayDialogs; </p><p>} </p><p></p><p>if ( undefined != startRulerUnits ) { </p><p>preferences.rulerUnits = startRulerUnits; </p><p>} </p><p></p><p>if ( undefined != startTypeUnits ) { </p><p>preferences.typeUnits = startTypeUnits; </p><p>} </p><p></p><p>}[/SPOILER]</p><p>Quelle: <a href="https://www.dpchallenge.com/forum.php?action=read&FORUM_THREAD_ID=875046&page=1#6514884" target="_blank">https://www.dpchallenge.com/forum.php?action=read&FORUM_THREAD_ID=875046&page=1#6514884</a></p><p></p><p>Als *.jsx Datei speichern und als einzigen Arbeitsschritt in einer Aktion aufzeichnen und dann diese Aktion per Stapelverarbeitung anwenden.</p></blockquote><p></p>
[QUOTE="ph_o_e_n_ix, post: 2703461, member: 650304"] Falls das wider erwarten nicht funktionieren sollte, gibt es hier ein Script, das es kann... [SPOILER]/////////////////////////////////////////////////////////////////////////////// //ResizeDocs.jsx //Resize so that largest dimension is X pixels wide @ Y resolution //copyright 2009 Beryl vdb /////////////////////////////////////////////////////////////////////////////// //User should set the constants below: /////////////////////////////////////////////////////////////////////////////// [B]const targetPixels=1200; const docRes = 72; // Picture resolution in pixels[/B] /////////////////////////////////////////////////////////////////////////////// //PROGRAM AREA - USER SHOULD NOT CHANGE ANYTHING BELOW THIS /////////////////////////////////////////////////////////////////////////////// //assign variables var startRulerUnits; var startTypeUnits; var startDisplayDialogs; var downSizing = false /////////////////////////////////////////////////////////////////////////////// // Dispatch /////////////////////////////////////////////////////////////////////////////// try { main(); /////////////////////////////////////////////////////////////////////////////// // Functions /////////////////////////////////////////////////////////////////////////////// function main() { //collect dialog defaults so that the program can set them back afterwards startDisplayDialogs = displayDialogs; startRulerUnits = preferences.rulerUnits; startTypeUnits = preferences.typeUnits; //set dialogs displayDialogs = DialogModes.NO; preferences.rulerUnits = Units.PIXELS; preferences.typeUnits = TypeUnits.PIXELS; //collect the height, width & resolution of the active document var activeDoc = app.activeDocument; var docHeight= activeDoc.height; var docWidth = activeDoc.width; //var docRes = activeDoc.resolution var docRatio = docWidth / docHeight; if (docHeight > docWidth) { docRatio = docHeight / docWidth; newHeight = targetPixels; newWidth = ((1.0 * newHeight) / docRatio) newWidth = Math.round(newWidth); // make integer //sizing up or down? if (docHeight > targetPixels) { downSizing = true } } else { docRatio = docWidth / docHeight; newWidth = targetPixels; newHeight = ((1.0 * newWidth) / docRatio) newHeight = Math.round(newHeight); // make integer //sizing up or down? if (docWidth > targetPixels) { downSizing = true } } if (downSizing) { resampleMeth = ResampleMethod.BICUBICSHARPER; } else { resampleMeth = ResampleMethod.BICUBICSMOOTHER; } activeDoc.resizeImage(newWidth, newHeight, docRes, resampleMeth) //reset preferences to original preferences.rulerUnits = startRulerUnits; preferences.typeUnits = startTypeUnits; displayDialogs = startDisplayDialogs; activeDoc = null; } //end function main } //end trry catch(e) { alert( e ); if ( undefined != startDisplayDialogs ) { displayDialogs = startDisplayDialogs; } if ( undefined != startRulerUnits ) { preferences.rulerUnits = startRulerUnits; } if ( undefined != startTypeUnits ) { preferences.typeUnits = startTypeUnits; } }[/SPOILER] Quelle: [URL]https://www.dpchallenge.com/forum.php?action=read&FORUM_THREAD_ID=875046&page=1#6514884[/URL] Als *.jsx Datei speichern und als einzigen Arbeitsschritt in einer Aktion aufzeichnen und dann diese Aktion per Stapelverarbeitung anwenden. [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Bildbearbeitung (2D), Vektor- & Layoutbearbeitung
Photoshop
Fotos verkleinern, Per Stapelverarbeitung?
Oben