Results 1 to 10 of 10

Thread: Using Phatch or an alternative to batch convert TIF images

  1. #1
    Join Date
    Mar 2008
    Location
    UK
    Beans
    150
    Distro
    Ubuntu 16.04 Xenial Xerus

    Using Phatch or an alternative to batch convert TIF images

    I have many tif images inside my Pictures directory and want to get them all converted to jpg type. Is Phatch really the best tool for this because after spending a reasonable amount of time looking I cannot figure out how to use it, even after looking at the tutorials.

    Is there anything out there that is more intuitive and has a GUI?

    Or has anyone a simple description of how to set Phatch up to do this?

  2. #2
    Join Date
    Nov 2009
    Location
    Madrid, Spain
    Beans
    1,403
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    I recommend ImageMagick:

    http://www.imagemagick.org/script/index.php

    This is an example:

    Code:
    convert image.tif image.jpg
    Last edited by lmarmisa; February 20th, 2013 at 01:37 PM. Reason: Added example

  3. #3
    Join Date
    Apr 2012
    Beans
    150
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    You can try XnConvert which makes it a breeze:
    http://www.xnconvert.com/downloads

  4. #4
    Join Date
    Mar 2008
    Location
    UK
    Beans
    150
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    Thanks but the problem with Convert is that it is not easily operated as a batch tool.

  5. #5
    Join Date
    Mar 2008
    Location
    UK
    Beans
    150
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    Quote Originally Posted by MrsUser View Post
    You can try XnConvert which makes it a breeze:
    http://www.xnconvert.com/downloads
    I might try this but the download site looks as though it is going to install adware. I can see that it is also available on the Software Centre via Launchpad - just need to remember my password - it is too late for this sleepyhead.

  6. #6
    Join Date
    Jan 2006
    Beans
    461
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    Hi,
    I am the author of Phatch. Converting them to jpeg is very simple. Just add a save action and set file type to jpg. Then drag and drop your Pictures folder on Phatch.
    Kind regards,
    Stani

  7. #7
    Join Date
    Jan 2006
    Beans
    461
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    Hi,
    I am the author of Phatch. Converting them to jpeg is very simple. Just add a save action and set file type to jpg. Then drag and drop your Pictures folder on Phatch.
    Kind regards,
    Stani

  8. #8
    Join Date
    Mar 2008
    Location
    UK
    Beans
    150
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    Stani. Thanks for coming back on this but that advice did not work completely.

    I added an Action and set type to jpg. Dragged the folder in and checked tif type, also do not overwrite (or similar). After pressing "Batch" it found the tif files and commenced processing - however there was no discernable output except a message advising of errors in the log.

    I looked at the log file but closed the error message before noting it's contents and now cannot find it, at least it is not where I expect it to be. As I recall it looked pretty much like a copy of the Action item.

  9. #9
    Join Date
    Mar 2008
    Location
    UK
    Beans
    150
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help - Using Phatch or an alternative to batch convert TIF images

    OK. I found all the new files, on a directory called Phatch on my desktop.

  10. #10
    Join Date
    Aug 2006
    Location
    Wiesbaden, Germany
    Beans
    40

    Re: Using Phatch or an alternative to batch convert TIF images

    Hi hundred 1906,

    you can use nautilus-scripts to do this task.

    The following nautilus-script will run the phatch-script in the current folder "."
    You can also use it as bash script

    Pay attention, that you add the "save"-Action to your phatch-script! I prefer to user "<folder>/name_of_script" for the place to save. This will put everything into a subfolder of the current folder.

    1. put it simply into $HOME/.gnome2/nautilus-scripts
    2. chmod 755 scriptname

    Now you can use it with your left mouse button and the scripts-menu.

    #!/bin/bash

    # Phatch
    myPhatchScript="YOUR_PHATCH_FILE.phatch"
    myPhatchDir="/PATH/TO/PHATCH_SCRIPTS/"
    myPhatch="${myPhatchDir}/${myPhatchScript}"

    myNotifyIcon="/PATH/TO/YOUR_ICON.png"


    ## Change this for toggling beeing a bash-script or a nautilus-script
    [ "$DEBUGMODE" = "--debug" ] && DEBUG=1
    [ $DEBUG ] && zenity --info --title "DEBUG-MODE" --text "Running in debugging mode."

    [ $DEBUG ] || cd "$NAUTILUS_SCRIPT_CURRENT_URI"
    [ $DEBUG ] && cd "$(pwd)"

    notify-send "Start conversion..." \
    -i ${myNotifyIcon} \
    "Phatch Script: ${myPhatchScript}."

    if phatch "${myPhatch}" .
    then
    notify-send "Conversion successfully ended ..." \
    -i ${myNotifyIcon} \
    "Phatch Script: ${myPhatchScript}."
    fi

    sync


    Greets
    Axel

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •