Mit
der Zeit haben sich bei mir ein ganze Menge kleine Progrämmchen und
Problemlösungen angesammelt, die auch für andere von Nutzen sein
können. Die hier vorgestellten Batchfiles, Photoshop-Aktionen und
sonstigen Lösungen können frei benutzt und kopiert werden. Jeder
Datei ist eine kleine Anleitung in deutsch und englisch beigefügt.
Ich freue mich über Rückmeldungen und Verbesserungen (Mail)
Over
the time many small programs and solutions have gathered that might be
of some use to others. The batch files, photoshop actions and other
solutions
I present here are free to use and copy. Each file contains a small
readme
that explains usage in english and german language. I appreciate your
feedback
and enhancements (Mail)
Mehr Tips und Infos zu Panoramen und den Panotools von mir im [Panotools
Wiki] -
more of my tips and information about panoramas and the
panotools in the
[Panotools
Wiki]
Inhalt - Contens:
| Javascript: | Exportiere
Ebenen mit Alpha -
Export Layers with Alpha |
|---|---|
| Typ - Type | photoshop CS Javascript |
| Benötigt - Requieres | photoshop CS |
| Beschreibung | Exportiert die Ebenen aus einem Photoshop-Dokument in einzelne TIFF-Dateien. Ebenenmasken werden als Alpha-Kanal gespeichert, Farb- und Helligkeitseinstellungen aus globalen oder ebenenspezifischen Einstellungsebenen bleiben erhalten. Dateinamen für alle Ausgabedateien werden automatisch erzeugt. |
| Description | Exports layers from a photoshop document to single TIFF files. layer masks are saved as Alpha channel. Color and brightness adjustment layers - no matter whether global or attached to single layers - are applied to each file prior to saving. Output filenames are created automatically. |
| Zweck | Ein aus mehreren Ebenen bestehendes Panorama nach dem Editieren der Masken und / oder Farben in seine Einzelbilder zu zerlegen um sie Enblend zur Verfügung zu stellen. |
| Purpose | Dismantle a multi layer panorama in it's single images after editing masks and / or colors in order to pass them to Enblend. |
| Bemerkung | Der Zweck und die Funktion von Enblend sollte bekannt sein, wenn die Aktion dafür benutzt wird. |
| Remark | Purpose and function of Enblend should be known if the action is used that for. |
| Version | 1.1, Okt 2005 - Löscht jetzt zusätzliche Alpha-Kanäle - Now deletes additional alpha channels |
| Download | export_layers_js.zip |
| Action: | Exportiere
Ebenen mit Alpha -
Export Layers with Alpha |
|---|---|
| Typ - Type | photoshop action set |
| Benötigt - Requieres | photoshop version 5.5 oder höher - or above |
| Beschreibung | Exportiert die Ebenen aus einem Photoshop-Dokument in einzelne TIFF-Dateien. Ebenenmasken werden als Alpha-Kanal gespeichert, Farb- und Helligkeitseinstellungen aus globalen oder ebenenspezifischen Einstellungsebenen bleiben erhalten. Namen für die einzelnen Dateien müssen manuell vergeben werden. |
| Description | Exports layers from a photoshop document to single TIFF files. layer masks are saved as Alpha channel. Color and brightness adjustment layers - no matter whether global or attached to single layers - are applied to each file prior to saving. File names must be netered manually. |
| Zweck | Ein aus mehreren Ebenen bestehendes Panorama nach dem Editieren der Masken und / oder Farben in seine Einzelbilder zu zerlegen um sie Enblend zur Verfügung zu stellen. |
| Purpose | Dismantle a multi layer panorama in it's single images after editing masks and / or colors in order to pass them to Enblend. |
| Bemerkung | Der Zweck und die Funktion von Enblend sollte bekannt sein, wenn die Aktion dafür benutzt wird. |
| Remark | Purpose and function of Enblend should be known if the action is used that for. |
| Version | 1.0, Okt 2004 |
| Download | export_layers.zip |
| Action: | Importiere
TIFF Dateien mit Alpha-Kanal in maskierte Ebenen -
Import TIFF files with alpha channel to masked layers |
|---|---|
| Typ - Type | photoshop action set |
| Benötigt - Requieres | photoshop version 6 oder höher - or above |
| Beschreibung | Importiert einzelnen TIFF-Dateien mit Alpha-Kanal in Photoshop-Ebenen. Alpha-Kanal wird als Maske verwendet. |
| Description | Imports single TIFF files with alpha channel into photoshop layers. The alpha channel is used as mask. |
| Zweck | Bugs in PTStitcher verhindern die Ausgabe großer Dateien als Photoshop PSD; 16 Bit-Dateien kann PTStitcher nur als TIFF ausgeben. |
| Purpose | Bugs in PTStitcher prevent the saving of large files in photoshop PSD format; PTStitcher saves 16 bit files only as TIFF. |
| Bemerkung | Ein Bug in Photoshop verhindert das Lesen großer TIFF-Dateien mit PackBits-Kompression, wie sie PTStitcher erzeugt. Lösung: In ein anderes Kompressionsformat konvertieren. |
| Remark | A photoshop bug prevents the reading of large PackBits compressed TIFF files as PTStitcher produces them. Workaround: Convert to other compression. |
| Version | 1.0 |
| Download | stitching.zip |
| Batch: | Erzeuge
6 Würfelflächen aus einem equirectangulären Panorama -
Create 6 cube faces from an equirectangular panorama |
|---|---|
| Benötigt - Requieres | PTStitcher |
| Beschreibung | Erzeugt und führt ein PTStitcher Skript aus, das ein equirectanguläres Panorama in 6 Würfelflächen (vorne, rechts, hinten, links, oben und unten) zerlegt. Größe der Flächen kann angegeben werden. |
| Description | Creates and runs a PTStitcher script that extracts 6 cube faces (front, right, back, left, up and down) from an equirectangular panorama. Accepts cube face size as input parameter. |
| Zweck | Zenith und Nadir sind im equirectangulären Format kaum zu editieren. |
| Purpose | Zenith and nadir can hardly be edited in equirectangular format. |
| Bemerkung | Eine wesentlich einfacher zu handhabende Version ist
in DOS
for Panos von Eric Gerds enthalten.
Die Würfelflächen können mit einem ganz ähnlichen Skript auch wieder zusammen gesetzt werden. Einfacher ist es, sie in einem der GUIs zusammenzusetzen. Lens correction Parameter müssen dafür auf 0.0 gesetzt werden, HFoV auf 90° und für die Einzelbilder Yaw/Pitch auf 0/0, 90/0, -180/0, -90/0, 0/90, 0/-90. Ein Template steht zur Verfügung. |
| Remark | A far more convenient version is available
in the Dos
for Panos package from Eric Gerds.
The cubfaces can be assembled again using a similar script. It may be easier to use any of the GUIs. Set Lens correction parameters to 0.0 and HFoV to 90°. Yaw/Pitch of the single images must be 0/0, 90/0, -180/0, -90/0, 0/90, 0/-90. A template is provided. |
| Version | 1.0 |
| Download | cubefaces.zip |
| Batch: | TIFF-Konversion
-
TIFF conversion |
|---|---|
| Benötigt - Requieres | ImageMagick |
| Beschreibung | Konvertiert eine TIFF-Datei (z.B. in ein anderes Kompressionsformat) per Rechtsklick->'Senden an' im Windows Explorer (Originaldatei wird ersetzt). |
| Description | Converts a TIFF file (f.e. to another compression scheme) by windows explorer right click menu 'SendTo' (original file will be replaced). |
| Quelltext - Source | @echo off
REM if no parameter, jump to no_param to help the user if "%~s1"=="" goto no_param :next_one echo %1 converting to LZW... REM if mogrify is in the path (default option when installing REM ImageMagick) then fully qualified path not needed mogrify -compress LZW %1 REM get next parameter shift REM if there are no more files, then exit if "%~s1"=="" goto end REM If we get here, there are more files. Loop back goto next_one :no_param echo. echo usage: Tiff_to_LZW {file name} {file name} {file name} ... echo. echo {file name} = TIFF file to convert echo (number of files is limited due to windows command line size limitation) echo. :end |
| Bemerkung | Das vorliegende Batchfile kann auch für alle
möglichen anderen
Konversionen benutzt werden. Dafür muß man nur die mogrify-Zeile
ändern:
mogrify +profile * %1 z.B. entfernt unerwünschte Profile und XML-Erweiterungen aus der TIFF-Datei (die in manchen Programmen Fehlermeldungen erzeugen). |
| Remark | This batch file can be used to do any other
conversion. Simply change
the mogrify-Line:
mogrify +profile * %1 f.e. strips unwanted profiles and XML extensions from the TIFF file (which cause error messages in some programs). |
| Benutzung | Obigen Quelltext in einen Texteditor (Notepad) kopieren und als TIFF_to_LZW.bat speichern. Im Explorer eine Verknüpfung erzeugen und in den Ordner "Dokumente und Einstellungen\<Benutzername>\SendenAn" verschieben. "SendenAn" ist möglicherweise versteckt und muß über das Explorer-Menü per Ordneroptionen, Ansicht sichtbar gemacht werden. |
| Usage | Copy above source code into a text editor (notepad) and save as TIFF_to_LZW.bat Create a shortcut and move it to the "Documents and Settings\<username>\SendTo" folder. "SendTo" is probably hidden. Make visible via Explorer Menu, Folder Options, View. |
| Version | 1.1 ( Vielen Dank an - Many thanks to: Bill Anderson) |
| Batch: | Computer
herunterfahren wenn Programm beendet -
Shutdown computer when program terminated |
|---|---|
| Benötigt - Requieres | PSTools von - from Sysinternals |
| Beschreibung | Wartet, bis ein in der Kommandozeile spezifiziertes Programm beendet ist und fährt dann den Computer herunter |
| Description | Waits until a program specified in the command line has terminated, then shuts down computer |
| Zweck | Spart Strom durch Abschalten des Rechners nach langen Jobs. |
| Purpose | Saves energy by switching off computer after long jobs. |
| Bemerkung | shutdown_if_terminates.bat schaut alle 6 Sekunden ob PSList noch den in der Kommandozeile angegebenen Prozess listet. Wenn nicht, wartet es 60 Sekunden ob der Prozess neu gestartet wird. Ist das nicht der Fall wird ein 60-sekündiger Countdown gestartet bis der Computer mit PSShutdown heruntergefahren wird. Dieser Countdown kann mit abort_shutdown.bat abgebrochen werden. |
| Remark | shutdown_if_terminates.bat file looks every 6 seconds whether PSList still lists the process specified in the command line. If not it waits 60 seconds whether the process restarts. Is this not the case a 60 seconds count down starts before the the computer is shut down. This count down can be interrupted with abort_shutdown.bat |
| Benutzung | shutdown_if_terminates
<process_name> <wait_seconds>
<process_name>
ist obligatorisch und kann jeder Prozess
sein, wie er von PSlist gelistet wird.
Beispiele:
C:\> shutdown_if_terminates photoshop
10
Die beiden Batchfiles können in ein beliebiges Verzeichnis kopiert werden. Es empfiehlt sich auf dem Schreibtisch, im Startmenü oder in einem beliebigen Ordner Verknüpfungen zu erstellen. In den Eigenschaften der Verknüpfung können die jeweiligen Parameter angegeben werden. PSList an der Kommandozeile aufgerufen gibt die korrekten Namen der Prozesse aus. C:\> abort_shutdown
|
| Usage | shutdown_if_terminates
<process_name> <wait_seconds>
<process_name>
is any process as listed by PSlist
(mandatory)
Examples:
C:\> shutdown_if_terminates
photoshop 10
The batch files can be copied into any folder. I recommend to place links on the desktop, in start menu or in any folder and edit the command line in the link properties. Use PSList from the command line to determinate the correct process name. C:\> abort_shutdown
|
| Version | 1.0 |
| Download | shutdown_if_terminates.zip |
| PTGui Template: | Erzeuge
ein equirectanguläres Panorama aus 6 Würfelflächen -
Create an equirectangular panorama from 6 cube faces |
|---|---|
| Benötigt - Requieres | PTGui |
| Beschreibung | Template für PTGui zum zusammensetzen von 6 Würfelflächen (vorne, rechts, hinten, links, oben und unten) zu einem equirectanguläres Panorama. |
| Description | Template for PTGui that assembles 6 cube faces (front, right, back, left, up and down) to an equirectangular panorama. |
| Zweck | Nach dem Editieren die mit cubefaces.bat erzeugten Würfelflächen wieder zusammenfügen. |
| Purpose | Assembling images created with cubefaces.bat after editing. |
| Bemerkung | Das Paket DOS for Panos von
Eric Gerds enthält auch ein Batchfile zum zusamensetzen der
Würfelflächen.
Die Einzelbilder (0000 bis 0005) in PTGui laden, cubefaces.pts über den Menüpunkt "Apply Template" anwenden, nicht optimieren, Ausgabegröße und -Name auf der 'Create Panorama'-Seite angeben und 'Create Panorama' drücken. Die Warnung 'The project has not been optimized...' kann ignoriert werden. |
| Remark | The DOS for Panos package
from Eric Gerds contains a batch file to assemble the cubefaces.
Load the images (0000 to 0005) in PTGui, use 'Apply Template' from the menu to apply cubefaces.pts, don't optimize, set output size and name on 'Create Panorama' tab page and press 'Create Panorama'. The warning 'The project has not been optimized...' can be savely ignored. |
| Version | 1.3 (update für PTGui 8+. - updated for PTGui 8+.) |
| Download | cubefaces_pts.zip |
| PTGui Templates: | Bodenbild aus
equirectangulärem Panorama extrahieren und wieder einfügen -
Extract and insert floor image from an equirectangular panorama |
|---|---|
| Benötigt - Requieres | PTGui |
| Beschreibung | Template für PTGui zum extrahieren eines 90°x90°
großen, rectilinearen Bodenbildes aus einem equirectanguläres
Panorama. Template zum Wiedereinfügen (remappen) des extrahierten Bodenbildes in das originale equirectanguläre Panorama. |
| Description | Template for PTGui that extracts a 90°x90°
sized rectilinear floor image from an equirectangular panorama. Template to re-insert the extracted floor image into the original equirectangular panorama. |
| Zweck | Bodenbild (Nadir) zum leichteren Bearbeiten aus einem equirectanguläres Panorama extrahieren und wieder einfügen. |
| Purpose | Extract and re-insert a floor (nadir) image from an equirectangular panorama in order to easily edit it. |
| Bemerkung | Weitere Möglichkeiten zum Extrahieren und
Wiedereinfügen von rectilinearen Bildern im Panotools
Wiki |
| Remark | More possibilities how to extract and re-insert rectilinear views in the Panotools Wiki |
| Version | 1.1 (jetzt kompatibel mit PTGui 8.1 - now compatible with PTGui 8.1) |
| Download | extract_insert_floor_pts.zip |
© Erik Krause 2005-2009