Results 1 to 7 of 7

Thread: How to view random images recursively?

  1. #1
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,303
    Distro
    Xubuntu

    Question How to view random images recursively?

    Hi.

    Does anyone know how to view random images recursively? A GUI or terminal method?

    Lets say I will use eog (Eye of GNOME) or gthumb to view the images.

    Cheers.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  2. #2
    Join Date
    Jan 2006
    Location
    Southampton, UK
    Beans
    177
    Distro
    Ubuntu

    Re: How to view random images recursively?

    I don't know how to do this with eog or gthumb, but I use feh:

    Code:
    feh -rzsZFD 5 /home/ian/Pictures/
    recursive, random, fullscreen slideshow; change every 5 seconds

    h - pause
    m - menu
    < - rotate left 90
    > - rotate right 90
    +/- speed up/slow down delay

    Ian

  3. #3
    Join Date
    Feb 2008
    Beans
    5,636

    Re: How to view random images recursively?

    You can use the shuf command with find.
    Let's say that you want to view random images (jpgs and pngs) from ~/Pictures, ~/My Photos and ~/Camera Shots. You can use something like
    Code:
    eog $(find ~/Pictures "~/My Photos" "~/Camera Shots" \( -iname "*.png" -or -iname "*.jpg" \) | shuf -n1)

  4. #4
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,303
    Distro
    Xubuntu

    Wink Re: How to view random images recursively?

    Thats odd, I never got email notifications for these posts. [Edit - it actually was my spam filter acting up]

    Thanks guys for the code lines.
    Last edited by Rytron; April 2nd, 2012 at 04:41 PM.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  5. #5
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,303
    Distro
    Xubuntu

    Question Re: How to view random images recursively?

    Quote Originally Posted by TeoBigusGeekus View Post
    You can use the shuf command with find.
    Let's say that you want to view random images (jpgs and pngs) from ~/Pictures, ~/My Photos and ~/Camera Shots. You can use something like
    Code:
    eog $(find ~/Pictures "~/My Photos" "~/Camera Shots" \( -iname "*.png" -or -iname "*.jpg" \) | shuf -n1)
    I tried this modification of your code.

    Code:
    eog $(find ~/Pictures \( -iname "*.png" -or -iname "*.jpg" \) | shuf -n1)
    It opens a picture (the same photo every time) from 2003 and then opens photos in order after that (all from 2003 folder).
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  6. #6
    Join Date
    Feb 2012
    Beans
    22

    Re: How to view random images recursively?

    I have used the third party applications to view the random images recursively!!

  7. #7
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,303
    Distro
    Xubuntu

    Question Re: How to view random images recursively?

    Quote Originally Posted by Adrian98 View Post
    I have used the third party applications to view the random images recursively!!
    Hi. Could you name them?
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

Tags for this Thread

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
  •