[Top][All Lists]

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

Re: [Ranger-users] Image preview

From: Wojciech Siewierski
Subject: Re: [Ranger-users] Image preview
Date: Thu, 09 Jul 2015 20:57:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

What do you need STDIN for exactly?

If I was debugging scope.sh I would probably just print some debug information to some log file. echo some_information > ~/scope.log or something like that.

On 07/09/2015 12:15 PM, Arman Eshaghi wrote:

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

Kind regards,
Wojciech 'vifon' Siewierski

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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