Learn Ethical Hacking
Tools

PhockUp – Organize Camera Photos and Videos in Folders by Date

PhockUp – Organize Camera Photos by Date
Written by Martins D. Okoi

This application is not one for the faint-hearted – just kidding. It’s just another CLI tool, you shouldn’t be frightened.

PhockUp is a command-line utility application for sorting media files e.g. photos and videos from your camera in folders by day, month, and year.

How does it work?

It works by collecting all the files in a source directory and neatly copying them into an output directory without changing the content of the files as it sorts them by their date.

Any files in the source folder that aren’t images or videos will be placed (without being renamed) in a directory unknown which is created on the fly. The same will happen to any images or videos that have no creation date information; this is so that the source directory can be safely gotten rid of with all its contents organized into a new directory.

Install Phockup on Linux

RedHat RHCSA and RHCE Certification Exam Study Ebook

Phockup is available as a snap app and can be installed on any Linux distro with support for snapd.

Install it by running the following code in a new terminal window:

$ sudo snap install phockup

If you are using Linux distribution which doesn’t support snapd or you simply don’t want to install it, you can use the below commands to install it from source.

$ sudo apt-get install libimage-exiftool-perl -y  [On Debian/Ubuntu]
$ sudo dnf install perl-Image-ExifTool -y         [On Fedora]
$ curl -L https://github.com/ivandokov/phockup/archive/1.3.0.tar.gz -o phockup.tar.gz
$ tar -zxf phockup.tar.gz
$ mv phockup-1.3.0 /opt
$ sudo ln -s /opt/phockup-1.3.0/phockup.py /usr/local/bin/phockup

As soon as you the installation is complete, use it by implementing the following command syntax.

$ phockup INPUTDIR OUTPUTDIR

The location of the folder whose contents you want to be organized is ‘INPUTDIR’ and the location to which the copied images/videos will be added to is ‘OUTPUTDIR’.

  Integrate Git on Your Nautilus File Manager with This Extension

So take, for example, you want to organize your Pictures folder and save the files to a folder in your Dropbox/Phockup, – this is the command you will use:

$ phockup ~/Pictures ~/Dropbox/Phockup

Easy, right? It’s GitHub intro reads: “Media sorting tool to organize photos and videos from your camera in folders by year, month and day” and that’s exactly what it does.

Give Phockup a try if it’s your cup of tea and let us know what you think about it in the comments section below.

Join Our Community Of 250,000+ Linux Lovers by liking us on Facebook, or follow us on Twitter, Google+ and Instagram.

If you liked this article, sign up for the fossmint newsletter for handpicked selection of stories from FossMint delivered to your inbox every day.


Top Deals

About the author

Martins D. Okoi

Martins Jr. (Dillivine) Okoi is a graduate of Computer Science with a passion for Linux and the Open Source community. He works as a Web designer & developer, technical writer, and programmer.

  • Juan Pablo Firrincieli

    =( it gives me an error:
    /snap/phockup/34/phockup.sh: line 9: /snap/phockup/34/usr/bin/python3: No such file or directory
    Ubuntu 17.04

    • I think you should install Python3.

      • Juan Pablo Firrincieli

        I understand the error but not the snap concept, I thought that everything the app needed was in the snap image, if it will need any more stuff why not use deb then?

        Thanks anyway for your help, I replaced this app with a custom self made python script 😉

        • Juan Pablo Firrincieli

          Just to clarify look that the app is looking for python inside the snap and not my system one, so I think it’s bad packaged.

    • Yes, it is probably a Python3 error.
      Make sure you have all the dependencies the app will need to run.

  • EndLessCat

    FYI
    dnf install renrot

Show Buttons
Hide Buttons