cookie
Goto Top

Bilder per Script bearbeiten

Hallo zusammen.

Ich suche eine möglichkeit per Script ein Bild von Laufwerk Z: um 90Grad nach links zu drehen, dann auf die feste Pixelgrösse von 90*120 zurecht biegen und auf Laufwerk Y: wieder zu speichern. Wobei das Bild auf Z: original bleiben sollte.

Leider habe ich üüüüberhaupt keine Plan wie man sowas umsetzen könnte.
Hat jemand von euch vileicht eine Idee?

Vielen dank schomal

Gruss
Cookie

Content-Key: 66712

Url: https://administrator.de/contentid/66712

Printed on: April 23, 2024 at 20:04 o'clock

Member: Cthluhu
Cthluhu Aug 21, 2007 at 12:35:32 (UTC)
Goto Top
Das Linuxtool "convert" müsste das können. Eine Windowsimplementierung gibts von ImageMagick
Member: MRosoft
MRosoft Aug 21, 2007 at 12:37:49 (UTC)
Goto Top
Denke das sollte Dir weiterhelfen. Hier ist genau beschrieben mit Beispielen und fertigen cmd's


http://www.feierabendblog.de/uploads/Tutorial_IM.pdf
Member: Janni
Janni Aug 21, 2007 at 13:03:31 (UTC)
Goto Top
Versuche den BatchModus von IrfanView (http://www.irfanview.de), geht auch von der Kommandozeile aus.

mfg
Member: cookie
cookie Aug 21, 2007 at 13:32:48 (UTC)
Goto Top
cool, sieht gut aus. vielen dank mal. hab jetzt aber noch das Problem, wenn ich sage -resize 90*120 macht er immer 68*90 damit die Skalierung erhalten bleibt. wie kann ich das umgehen? Habs leider in den parameter nicht gefundenface-sad
Member: MRosoft
MRosoft Aug 21, 2007 at 14:01:26 (UTC)
Goto Top
-resize widthxheight{%} {@} {!} {<} {>}
resize an image.

By default, the width and height are maximum values. That is, the image is expanded or contracted to fit the width and height value while maintaining the aspect ratio of the image. Append an exclamation point to the geometry to force the image size to exactly the size you specify. For example, if you specify 640x480! the image width is set to 640 pixels and height to 480.

If only the width is specified, the width assumes the value and the height is chosen to maintain the aspect ratio of the image. Similarly, if only the height is specified (e.g., -resize x256, the width is chosen to maintain the aspect ratio.

To specify a percentage width or height instead, append %. The image size is multiplied by the width and height percentages to obtain the final image dimensions. To increase the size of an image, use a value greater than 100 (e.g. 125%). To decrease an image's size, use a percentage less than 100.  

Use @ to specify the maximum area in pixels of an image.

Use > to change the dimensions of the image only if its width or height exceeds the geometry specification. < resizes the image only if both of its dimensions are less than the geometry specification. For example, if you specify 640x480> and the image size is 256x256, the image size does not change. However, if the image is 512x512 or 1024x1024, it is resized to 480x480. Enclose the geometry specification in quotation marks to prevent the < or > from being interpreted by your shell as a file redirection.

If the -filter option precedes the -resize option, the image is resized with the specified filter.

If the -support option precedes the -resize option, the image is resized with the specified support.

Denke das es irgentwie mit < und > gesteuert wird. Kann es leider jetzt nicht installieren aber probier mal .