You are not logged in.
ber_t wrote:Sorry, but I also do not plan to implement gif animation support. Please have a look at gifview, which comes with extra/gifsicle.
Static gifs work just fine.
The latest version can play animated GIF.
The one I'm posting is the only GIF, from the ones I've tested, which failed to play.
Offline
I personally don't have caches or better, I've relocated them to RAM (SSD should not get trashed). Isn't there a way just to scale them, you know, like in HTML where you define w/h and the image gets scaled on the fly?
I don't really understand your point. Scaling is doable, but it takes some time. Rendering a bunch of dynamically scaled thumbnails is much more time consuming than the current approach, in which the thumbnails are scaled to a fixed size (given at compile time) only once when they're loaded. This makes it possible to directly render them afterwards without any postprocessing (possibly many more times).
karol wrote:ber_t wrote:Sorry, but I also do not plan to implement gif animation support. Please have a look at gifview, which comes with extra/gifsicle.
Static gifs work just fine.
The latest version can play animated GIF.
The one I'm posting is the only GIF, from the ones I've tested, which failed to play.
@karol: Well, seems my plan regarding gif animation has changed...
@bloom: The gif image you've uploaded is corrupted. But I've slightly changed the way in which sxiv handles corrupted gif files. It now loads/shows as much frames of such a corrupted gif image as possible.
Offline
avx wrote:I personally don't have caches or better, I've relocated them to RAM (SSD should not get trashed). Isn't there a way just to scale them, you know, like in HTML where you define w/h and the image gets scaled on the fly?
I don't really understand your point. Scaling is doable, but it takes some time. Rendering a bunch of dynamically scaled thumbnails is much more time consuming than the current approach, in which the thumbnails are scaled to a fixed size (given at compile time) only once when they're loaded. This makes it possible to directly render them afterwards without any postprocessing (possibly many more times).
As long as such a behaviour would be optional (ie something like a --dynamic parameter) I wouldn't care spending some CPU-cycles, I'd find it convinient for my use cases. Alternatively, since there's a -z to define a default zoom on the fly, there could be an equivalent for thumbsizes.
// ich geb ja zu, braucht nicht jeder
Offline
Great tool!
Could you add xembed support?
Gentoo user here
Offline
@bloom: Maybe you can comment on this issue on sxiv's github site: https://github.com/muennich/sxiv/issues/13 I'm not sure yet how to implement selecting multiple images, so maybe you can join the discussion, before I start working on it. Thanks.
Could you add xembed support?
XEmbed support shouldn't be that hard to implement, but why do you need it? Do others in here also need/want this?
Offline
XEmbed support shouldn't be that hard to implement, but why do you need it? Do others in here also need/want this?
I am planning to make something like crippled tabbed in two favors:
1st - pretty much like tabbed but without tabs - example work flow: xembedded terminal, launch something like 'surf -e $PARENT_XID' (or xembed enabled sxiv) and it's now in front (terminal is in background), exiting from surf - you go back to terminal
2nd - like 1st but only for single application (so if you embed another client previous will be closed)
2nd can be used as preview window for some simplistic file manager that I also plan to make. Both can be useful tools.
I hope that you can understand me
Gentoo user here
Offline
Is there some way for an external script to tell sxiv to load a particular image on the fly? It could be used to preview images with a file manager. :3 With XEmbed you could even embed both the file manager and sxiv in the same window.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Is there some way for an external script to tell sxiv to load a particular image on the fly? It could be used to preview images with a file manager. :3
Yeah, but I would also want to preview other files in same window: html, pdf, svg etc. All with xembed enabled viewers.
Many times I want to check many files with different extensions, and I would really appreciate to view them in single window.
I am using tiling wm, so opening something moves and resizes windows. I don't like it for previews (and many times I need lots of them). I have to open file, check it, close it, repeat - all of this with unnecessary resizes. Anyways, there is more into it than additional resizes and keystrokes.
With XEmbed you could even embed both the file manager and sxiv in the same window.
Of course that would be possible also and it would be cool
Gentoo user here
Offline
A little usability suggestion (and wish!), please excuse me if it has already been asked, but i didn't read all thread pages.
Can you add the ability to see previous and next images even if only an image is specified by the command line parameter?
thanks!
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
Can you add the ability to see previous and next images even if only an image is specified by the command line parameter?
space and backspace do this already - within the filelist specified by the commandline parameters.
Offline
Yeah, i mean to have the feature working even by specifying just one file.
-edit-
Another question: does sxiv preload the next image?
Last edited by kokoko3k (2011-09-26 12:35:31)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
Yeah, i mean to have the feature working by specifying just one file.
You can use '-n' switch.
It may get tricky if I run
sxiv *foo*
on
[karol@black foo]$ ls
total 0
-rw-r--r-- 1 0 09-26 14:33 001
-rw-r--r-- 1 0 09-26 14:33 002
-rw-r--r-- 1 0 09-26 14:33 003
-rw-r--r-- 1 0 09-26 14:33 1foo0
-rw-r--r-- 1 0 09-26 14:33 2foo0
-rw-r--r-- 1 0 09-26 14:33 3foo0
-rw-r--r-- 1 0 09-26 14:33 3foo3
-rw-r--r-- 1 0 09-26 14:33 4foo0
-rw-r--r-- 1 0 09-26 14:33 5foo0
-rw-r--r-- 1 0 09-26 14:33 abc
-rw-r--r-- 1 0 09-26 14:33 def
-rw-r--r-- 1 0 09-26 14:33 ghi
What would be the previous picture (assuming you can "go back" before the first picture in the list specified via the commandline - "wraparound")?
Last edited by karol (2011-09-26 12:41:02)
Offline
Think if i want to use sxiv to see images by a souble click in my desktop environment.
Double click on a file, then press space and see the next.
using "-n" to achieve that would mean to write a wrapper script, isn't it?
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
Offline
Thanks, i saw until page 5 of the thread ^_^
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
Thanks, i saw until page 5 of the thread ^_^
You can change the number of posts per page in your forum profile under 'Display' - I have set mine to 75, so this thread has only 4 pages ;-P
Offline
@bloom: Maybe you can comment on this issue on sxiv's github site: https://github.com/muennich/sxiv/issues/13
I'm the one who created the issue.
Offline
@ber_t:
sxiv is great, do you have plans to add the preoloading of the next and previous image to speed-up browsing?
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
@ber_t:
sxiv is great, do you have plans to add the preoloading of the next and previous image to speed-up browsing?
I may look into it.
Offline
Thank you, ber_t.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
@kokoko3k: Achieving a speed-up in browsing by preloading images isn't that easy. The loading of the images doesn't take a lot of time, whereas the rendering of the image accounts for most of the waiting time.
Pre-rendering images would require the usage of multiple threads and would thus vastly increase complexity. So, I don't plan to add it in the future. But I might add a configuration option to change Imlib2's cache size, which may result in shorter reloading times.
Offline
Thanky you anyway for looking into it!
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Online
I made a little script to move the current image to some directory.
The 'database' is just a list of directories (~ can be used, one directory per line).
#! /bin/sh
XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
MAX_LINES=128
move_places="$XDG_DATA_HOME/moveplaces"
places_temp="$XDG_DATA_HOME/moveplaces.tmp"
width_height=`xwininfo -root | grep -m 1 '\-geometry' | grep -oE '[0-9]+x[0-9]+'`
width=${width_height%x*}
height=${width_height#*x}
bar_width=$(($width / 2))
left_shift=$((($width - $bar_width) / 2))
top_shift=$(($height / 3))
fn='-*-terminus-medium-r-normal-*-28-*-*-*-*-*-iso10646-*'
nb='#282828'
nf='#928F88'
sb='#282828'
sf='#D8D4CB'
if [ ! -e "$move_places" ]; then
touch "$move_places"
fi
destination=$(cat "$move_places" | dmenu -i -fn "$fn" -nb "$nb" -nf "$nf" -sb "$sb" -sf "$sf" -l 7 -x $left_shift -y $top_shift -w $bar_width)
if [ -n "$destination" -a $? -eq 0 ]; then
destination=${destination//\~/$HOME}
mv "$@" "$destination"
destination=${destination//$HOME/\~}
destination=${destination//\//\\\/}
sed -i "1s/^/$destination\n/" "$move_places"
cat "$move_places" | sort | uniq -c | sort -rn | sed 's/^[0-9 ]*//' | head -n $MAX_LINES > "$places_temp"
mv "$places_temp" "$move_places"
fi
Last edited by bloom (2011-10-18 20:39:37)
Offline
#! /bin/sh
Use #!/bin/bash when you mean it.
----8<---- if [ -n "$destination" -a $? -eq 0 ]; then destination=${destination//\~/$HOME} mv "$@" "$destination" destination=${destination//$HOME/\~} destination=${destination//\//\\\/} sed -i "1s/^/$destination\n/" "$move_places" cat "$move_places" | sort | uniq -c | sort -rn | awk '{print $2}' | head -n $MAX_LINES > "$places_temp" mv "$places_temp" "$move_places" fi
Very twisted and error-prone. Catch this:
if (( ! $? )) && [[ -n $destination ]]; then
# Good enough if you don't need to support ~user or ~- expansions
_destination=${destination/#\~/~}
mv -t "$_destination" "$@"
{ printf '%s\n' "$destination"; cat "$move_places"; } | sort | ... > "$places_temp"
mv -T "$places_temp" "$move_places"
fi
Last edited by lolilolicon (2011-10-17 14:28:36)
This silver ladybug at line 28...
Offline