Alternatives to IrfanView in PuppyLinux:

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#21 Post by smokey01 »

I find geeqie very nice and easy to use.
http://geeqie.org/

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#22 Post by Makoto »

I'll admit I need a simple viewer more than an image-processing suite. :) (Hasn't stopped me from using suites in the past, but they all had decent simple-viewer capability.)

That said, I tried the version of fotoxx that I could find in PPM (v12.01.2), and yeah, it did seem a bit unintuitive. The GUI looked coarsely-drawn (reminding me of the older XNView Linux version), and it required me to download another dependency on startup (which PPM didn't know about, apparently).

I didn't like having to select a gallery directory to sync on startup... pointed it to the folder where all my images are located. It scanned them, generated thumbnails, and then... sat there. (Another instance of being unintuitive - you'd think the program would automatically display the root folder of the gallery in the main window, or something like that, once it's done cataloging the images from the folder(s).)

I'm hoping the newest version's quite a bit better, since there's another major version jump, but I was feeling too lazy to compile fotoxx and the chain of dependencies. :oops: :mrgreen:
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#23 Post by Mike Walsh »

Morning, all.

Ooh, this is a hard one. Image viewers are an incredibly personal choice; no two individuals are going to have the same requirements, or wish to do things the same way. What seems intuitive to one, seems clumsy (and clunky) to someone else.....

I guess serious users of such apps would wish to have ease of access to whatever file they want to view; ease of manipulation of said file.....and ease in the way in which you can send said file to your favourite editing program (preferably open, and immediately ready to work on).

Some want all the bells & whistles, along with a slick, professional-looking interface. Some are happy with a very plain interface, being more concerned with how it actually functions.... We all tend to recommend the apps with which we're most familiar (usually through long use), forgetting that they may not suit somebody else.....though in all honesty, it's all you really can do. The choice has to be made by the individual, basically via experimentation; try it out, see if ya like it. If not.....try summat else.

The same advice goes for any app. (I've long since given up recommending my favourite browser, Chrome; some folks loathe it with a passion bordering on hatred.) The packages are there; the choice, well.......


Mike. :wink:

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#24 Post by Mike Walsh »

smokey01 wrote:I find geeqie very nice and easy to use.
http://geeqie.org/
I'd never tried Geeqie before, I must admit. Having done so, I rather like it...

Of course (unlike Viewnior) this is a pure image viewer; won't play GIF files, for instance. That fact notwithstanding, it's a nice, lightweight viewer, and surprisingly easy to get the hang of.

For anyone who's interested, I tracked down the appropriate files at old-releases.ubuntu.com, and have run up a package for Precise and Raring. You can find it at my G-Drive, here:-

https://drive.google.com/file/d/1isAGti ... sp=sharing

Enjoy.

------------------------

As for fotoxx, we-e-ell; I'm not keen on its image management, it's true (it's another one, like Shotwell, that wants to be in sole charge of all your images).....but it has one feature I make quite frequent use of; the 'Warp' function, under the 'Transform' Menu. You can achieve some very interesting effects with this..!


Mike. :wink:

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#25 Post by puppy_apprentice »

Dillo Viewer:

Code: Select all

#!/bin/sh
LIST=$(ls *.{jpg,png} 2> /dev/null)

echo -e "<!DOCTYPE html>\n<html>\n<body>" >gallery.html
echo -e "<h3>Pictures from $(pwd) dir:\n</h3><br>" >>gallery.html
for Line in $LIST
do
	echo "<a href=\"$Line\"><img src=\"$Line\" alt=\"$Line\" width=\"196\" height=\"110\"></a>" >>gallery.html
done

echo -e "</body>\n</html>" >>gallery.html

dillo gallery.html
Firefox Viewer:

Code: Select all

#!/bin/sh

if [[ ! -e "index.html" ]]; then
	echo -e "<!DOCTYPE html>\n<html>\n<frameset cols=\"*,235px\">\n<frame src=\"\" name=\"view\">\n<frame src=\"gallery.html\">\n</frameset>\n</html>" >index.html
fi

LIST=$(ls *.{jpg,png} 2> /dev/null)

echo -e "<!DOCTYPE html>\n<html>\n<body>" >gallery.html
echo -e "<h3>Pictures from $(pwd) dir:\n</h3><br>" >>gallery.html
for Line in $LIST
do
	echo "<a href=\"$Line\" target=\"view\"><img src=\"$Line\" alt=\"$Line\" width=\"196\" height=\"110\"></a>" >>gallery.html
done

echo -e "</body>\n</html>" >>gallery.html

firefox index.html
Attachments
Screenshot_2018-11-05_145434.jpg
Dillo
(78.91 KiB) Downloaded 214 times
Screenshot_2018-11-05_145347.jpg
Firefox
(97.52 KiB) Downloaded 177 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#26 Post by musher0 »

Hi, Puppy_Apprentice.

Nice find!

Please find attached your firefox script with your by-line (you are too
humble a person, yes?! :) ), the date and the reference to your post
above.

Code: Select all

#!/bin/sh 
# /root/my-applications/bin/firefox-picture-viewer.sh
# Author: "Puppy_Apprentice", Nov. 5 2018
# Source: http://www.murga-linux.com/puppy/viewtopic.php?p=1009128&sort=lastpost#1009128
####
if [[ ! -e "index.html" ]]; then 
    echo -e "<!DOCTYPE html>\n<html>\n<frameset cols=\"*,235px\">\n<frame src=\"\" name=\"view\">\n<frame src=\"gallery.html\">\n</frameset>\n</html>" >index.html 
fi 

LIST=$(ls *.{jpg,png} 2> /dev/null) 

echo -e "<!DOCTYPE html>\n<html>\n<body>" >gallery.html 
echo -e "<h3>Pictures from $(pwd) dir:\n</h3><br>" >>gallery.html 
for Line in $LIST 
do 
    echo "<a href=\"$Line\" target=\"view\"><img src=\"$Line\" alt=\"$Line\" width=\"196\" height=\"110\"></a>" >>gallery.html 
done 

echo -e "</body>\n</html>" >>gallery.html 

firefox index.html
Plus a screen capture in seamonkey. I didn't touch your code. The only
thing I had to do is make a full (non-relative) symlink from the
seamonkey executable to /usr/bin/firefox.

Now, if the user wishes to edit the image shown in the main panel in
firefox, is there a way (s)he can send or transfer this image to an image
editor? Or this is only a viewer? (Which is quite ok too.)

BFN.
Attachments
PAs-firefox-pic-viewer.jpg
(111.58 KiB) Downloaded 277 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#27 Post by puppy_apprentice »

musher0 wrote:Now, if the user wishes to edit the image shown in the main panel in
firefox, is there a way (s)he can send or transfer this image to an image
editor? Or this is only a viewer? (Which is quite ok too.)
I'm afraid only this is possible:

Code: Select all

#!/bin/sh
# /root/my-applications/bin/browser-picture-viewer.sh
# Author: "Puppy_Apprentice", Nov. 5 2018
# Source: http://www.murga-linux.com/puppy/viewtopic.php?p=1009161#1009161
####

if [[ ! -e "index.html" ]]; then
	echo -e "<!DOCTYPE html>\n<html>\n<head>\n<title>Browser Picture Viewer</title>\n</head>\n<frameset cols="*,235px">\n<frame src="" name="view">\n<frame src="gallery.html">\n</frameset>\n</html>" >index.html
fi
cho -e ""
LIST=$(ls *.{jpg,png} 2> /dev/null)

echo -e "<!DOCTYPE html>\n<html>\n<body>" >gallery.html
echo -e "<h3>Pictures from $(pwd) dir:\n</h3><br>" >>gallery.html
for Line in $LIST
do
	echo "<a href="$Line" target="view"><img src="$Line" alt="$Line" width="196" height="110"></a>" >>gallery.html
done

echo -e "</body>\n</html>" >>gallery.html

defaultbrowser index.html # but browser should know frames

send_to() {

   if which xclip >/dev/null 2>&1; then
      clip=$(xclip -selection clipboard -o)
   else
      clip=$(xsel --clipboard -o)
   fi

   gxmessage -name "Send to..." -nearmouse -buttons "mtPaint:42,PeasyPrint:255" "${clip:7}"

   case $? in
      42) mtpaint "${clip:7}";;
     255) peasyprint "${clip:7}";;
       *) echo "Operation Canceled" # or empty
   esac

}

export -f send_to

PIPE="/tmp/snippets_${USER}_${$}"
mkfifo "$PIPE"
exec 3<> "$PIPE"
trap 'echo "quit" >&3; rm -f "$PIPE"' EXIT

yad --notification --kill-parent --listen --image="gtk-save" --text="Send to..." --command="sh -c send_to" <&3
First click RMB on thumbnail or big picture in browser and choose options: Copy link location or Copy image location. Next click LMB on yad tray icon to choose option where you want to send chosen picture.
Attachments
Screenshot_2018-11-05_224551.jpg
Send url to editor
(117.01 KiB) Downloaded 279 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#28 Post by musher0 »

Hi, Puppy_Apprentice.

You sure you are an "apprentice" ?! :)
Nice cat you have! :)

But seriously:
I'm out of luck. Seamonkey does not give me the options "Copy picture
link to". And the old opera 12.16 refuses to load file index.html...

In seamonkey, do you or anybody know how I could add this "Copy
picture link to"? Seamonkey offers a "send to", but to its mail component.
TIA.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#29 Post by puppy_apprentice »

Maybe you have Copy Image or Copy URL or something with URL/address/link in option name when you click on picture RMB. Link to picture will be stored in Clipboard.

But to send something to editor you have later click on Yad icon which take address from clipboard and open it with chosen program.

Here you have work-around:
http://forums.mozillazine.org/viewtopic ... 0&t=398812

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#30 Post by musher0 »

Hello again, Puppy_Apprentice.

I got it working in the old opera with the following changes:
line 22 --

Code: Select all

defaultbrowser $PWD/index.html & # but browser should know frames 
I had to specify $PWD/index.html as a precaution, because my Opera is
not in the path, and it does not know where to look otherwise.

lines 31-38 --

Code: Select all

    gxmessage -name "Send to..." -nearmouse -buttons "mtPaint:42,PeasyPrint:255" "${clip:16}" 

    case $? in 
       42) mtpaint "${clip:16}";; 
      255) peasyprint "${clip:16}";;

        *) echo "Operation Canceled" # or empty 
    esac 
"file://localhost" has 16 characters, not 7. Cutting at 7 chars, mtpaint does
not know how to interpret the "localhost" part.

Also, I think it would need an exit button as well, and / or or some way to
close the yad tray icon -- on the icon -- once we have finished. Because,
as it is, it stays there forever; I had to run < killall yad > to get rid of it.

A zip file with my edits is attached. Please feel free to do what you want
with them. I will do a 2nd test with SeaMonkey.

TWYL
Attachments
browser-picture-viewer.sh.zip
(1.08 KiB) Downloaded 210 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#31 Post by puppy_apprentice »

musher0 wrote:"file://localhost" has 16 characters, not 7. Cutting at 7 chars, mtpaint does
not know how to interpret the "localhost" part.
Om my machine (firefox) path is always:

Code: Select all

file:///mnt/etc.
so URL have to be shorten for 16 or 7 depends if there will be "localhost" or not.
musher0 wrote:Also, I think it would need an exit button as well, and / or or some way to
close the yad tray icon -- on the icon -- once we have finished. Because,
as it is, it stays there forever; I had to run < killall yad > to get rid of it.
You can close YAD icon by MMB (middle mouse button) or wheel.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#32 Post by musher0 »

Hi.

As I recall, the real expression is file://localhost; file:/// is shorthand.

I suppose the script will have to accommodate the browser's way of
expressing it. May I suggest one of the five ways to detect it, here.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#33 Post by Semme »

8) Good stuff PA -- I like!
Image
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#34 Post by puppy_apprentice »

+ exit
+ check for 'localhost'

Code: Select all

#!/bin/sh
# /root/my-applications/bin/browser-picture-viewer.sh
# Author: "Puppy_Apprentice", Nov. 5 2018
# Source: http://www.murga-linux.com/puppy/viewtopic.php?p=1009207#1009207
####

if [[ ! -e "index.html" ]]; then
    echo -e "<!DOCTYPE html>\n<html>\n<head>\n<title>Browser Picture Viewer</title>\n</head>\n<frameset cols=\"*,235px\">\n<frame src=\"\" name=\"view\">\n<frame src=\"gallery.html\">\n</frameset>\n</html>" >index.html
fi

LIST=$(ls -1 *.{jpg,png} 2> /dev/null)

echo -e "<!DOCTYPE html>\n<html>\n<body>" >gallery.html
echo -e "<h3>Pictures from $PWD dir:</h3>\n<br>" >>gallery.html
for Line in $LIST
do
   echo "<a href=\"$Line\" target=\"view\"><img src=\"$Line\" alt=\"$Line\" width=\"196\" height=\"110\"></a>" >>gallery.html
done

echo -e "</body>\n</html>" >>gallery.html

defaultbrowser $PWD/index.html & # but browser should know frames

send_to() {
    if which xclip >/dev/null 2>&1; then
       clip=$(xclip -selection clipboard -o)
    else
       clip=$(xsel --clipboard -o)
    fi

    if [[ $clip =~ "localhost" ]]; then
       clip=${clip:16}
    else
       clip=${clip:7}
    fi

    gxmessage -name "Send to..." -nearmouse -buttons "mtPaint:42,PeasyPrint:52,Cancel:62,Exit:72" "$clip"

    case $? in
       42) mtpaint "$clip";;
       52) peasyprint "$clip";;
       72) killall yad --notification --kill-parent --listen --image="/root/.usr/share/midi-icons/paint48.png" --text="Send to..." --command="sh -c send_to";;
       *)
    esac

}

export -f send_to

PIPE="/tmp/snippets_${USER}_${$}"
mkfifo "$PIPE"
exec 3<> "$PIPE"
trap 'echo "quit" >&3; rm -f "$PIPE"' EXIT

yad --notification --kill-parent --listen --image="/root/.usr/share/midi-icons/paint48.png" --text="Send to..." --command="sh -c send_to" <&3

exit
Attachments
Screenshot_2018-11-06_151505.jpg
(65.54 KiB) Downloaded 241 times
browser-picture-viewer.sh.gz
fake gz
(1.72 KiB) Downloaded 230 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

Thanks, Puppy_Apprentice. The features that you added work well.

If I may, would it be possible to stabilize the picture shown? I mean:
separate it from the scrolling list of pictures?

Of course the chosen picture has to change when a new one is chosen, but
while we choose (scrolling down the list on the right), could it stay in place
and not scroll down too? I find it a bit confusing the way it is.

On the other hand, if it's doing this only on my old Opera, don't bother.

TIA. BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#36 Post by musher0 »

Surprisingly, the links2 browser does this separation naturally, by default.
Attachments
links-picture-viewer.jpg
(85.11 KiB) Downloaded 217 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#37 Post by puppy_apprentice »

I think it is browser dependent. Sometimes browsers render pages differently.

You can check this part of code:

Code: Select all

if [[ ! -e "index.html" ]]; then
   echo -e "<!DOCTYPE html>\n<html>\n<head>\n<title>Browser Picture Viewer</title>\n</head>\n<frameset cols=\"*,235px\">\n<frame src=\"\" name=\"view\">\n<frame src=\"gallery.html\">\n</frameset>\n</html>" >index.html
fi
Especialy this part:

Code: Select all

<frameset cols=\"*,235px\">
Thumnails part is 235 pixels wide.
Viewer part has '*' symbol that means window - 235 pixels.
Try to put instead of '*' eg. 1024 (or something near your screen size) - 235.

And this part:

Code: Select all

<frame src=\"\" name=\"view\">\n<frame src=\"gallery.html\">
Change to:

Code: Select all

<frame src=\"\" name=\"view\" scrolling=\"yes\">\n<frame src=\"gallery.html\" name=\"thumbs\" scrolling=\"yes\">
Maybe this help. Another solution is to use iFrames instead of Frames. But i'm not sure if Opera will render iFrames the same like Mozilla family browsers. Or maybe some JavaScript or CSS code is needed.

BTW. In Firefox you can move middle slider to change width of two parts. And F11 change view to full screen.

My browser viewer has one problem. It has to render all thumbnails. If pictures are very big and you have them many in directory loading will be very slow and memory usage big, especially without HDD and swap partition. But it is possible to make 'select' gadget instead of thumbnails.
Attachments
Screenshot_2018-11-06_175006.jpg
Middle slider movable.
(104.09 KiB) Downloaded 217 times

Post Reply