[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] Image preview

From: Arman Eshaghi
Subject: Re: [Ranger-users] Image preview
Date: Thu, 9 Jul 2015 11:15:51 +0100

Thank you. Do you know how I can turn on STDIN for scope.sh? The problem is that I have followed your recommendations, however, I do not get anything although my preview program works fine out of ranger. I was wondering whether it would be possible to debug scope.sh problems when producing some output? Or more generally how do you debug scope.sh problems?

On Wed, Jul 8, 2015 at 9:53 PM, Wojciech Siewierski <address@hidden> wrote:

On 07/08/2015 09:58 PM, Arman Eshaghi wrote:

Hi all,

First thanks for this amazing open-source piece of art.

I have written a program that converts specific type of images into temporary (/tmp) jpeg format, so that I can then use ranger preview image capabilities to quickly go through my files. What would be the best way to show these temporary files from tmp folder without needing user to manually change back to /tmp. I am not sure whether I have to write a new plugin for ranger, or just hack scope.sh? The problem is that the file I need to show as the preview is a converted file in temporary folder.

Thanks for any input on this.

Yes, it’s possible and even supported to create custom previews. Please refer to this section of the user guide: https://github.com/hut/ranger/wiki/Official-user-guide#custom-image-previews

This in an example of such previews in scope.sh:

        ffmpegthumbnailer -i "$path" -o "$cached" -s 0 && exit 6 || exit 1;;
Kind regards,
Wojciech 'vifon' Siewierski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]