[Thunar-workers] [Thunar File Manager] page changed: documentation:custom_actions

thunar-workers at xfce.org thunar-workers at xfce.org
Tue Apr 15 04:47:24 CEST 2008


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2008/04/15 02:47
Browser     : Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080401 BonEcho/2.0.0.13
IP-Address  : 65.183.133.213
Hostname    : 65-183-133-213-dhcp.burlingtontelecom.net
Old Revision: http://thunar.xfce.org/pwiki/documentation/custom_actions?rev=1204545411
New Revision: http://thunar.xfce.org/pwiki/documentation/custom_actions
Edit Summary: Example for rotating JPEGs losslessly with jpegtran
User        : deadrabbit

@@ -88,12 +88,17 @@
      * Name: **To JPEG**
      * Command: ''convert %f -quality 75 %f.jpg''
      * File pattern: *.png
      * Appears if selection contains: Image Files
- **Note:** You can use a similar form for rotating JPEG files losslessly using the ''jpegtran'' utility (available as part of the libjpeg or libjpeg-progs packages of most distributions).
  
  **Hint:** ''`basename %f .png`.jpg'' (be careful--those are //back//ticks) will strip the old .png extension off of the original filename.
  
+ ==== Losslessly Rotating JPEGs ====
+     * Name: **Rotate Clockwise**
+     * Command: ''for file in %F; do tempfile=$(mktemp); (jpegtran -rotate 90 $file > $tempfile); mv -f $tempfile $file; rm -f $tempfile; done''
+     * File pattern: *.jpg;*.JPG;*.jpeg;*.JPEG
+     * Appears if selection contains: JPEG Image Files
+ **Note:** jpegtran is available as part of the libjpeg or libjpeg-progs packages of most distributions. Unlike using "convert", the complicated loop structure is necessary with "jpegtran": "jpegtran -rotate 90 -outfile %F %F" will produce a 0kb file.
  
  ==== Opening a terminal ====
      * Name: **Open in a terminal**
      * Command: ''%%terminal --default-working-directory=%d%%''



-- 
This mail was generated by DokuWiki at
http://thunar.xfce.org/pwiki/




More information about the Thunar-workers mailing list