Comments (6)
I ran the following script*:
#!/bin/bash
# the thumbnailing function
atrilthumb() {
F1=$HOME/.thumbnails/normal
F2=$HOME/.cache/thumbnails/normal
SAVE_FOLDER=$F1
[ -e $F2 ] && SAVE_FOLDER=$F2
outname=$(echo -n "$(readlink -f "$0")" | \
perl -MURI::file -MDigest::MD5=md5_hex -ne 'print md5_hex(URI::file->new($_));')
# no work if thumbnail already present
[ ! -e $SAVE_FOLDER/${outname}.png ] && {
echo "$0"
#uncomment only one of both thumbnailers
#convert -thumbnail 128x128 "$0"[0] $SAVE_FOLDER/${outname}.png 2>/dev/null
atril-thumbnailer -s 128 "$0" $SAVE_FOLDER/${outname}.png
}
}
# make our function visible to the subshell in "find -exec" below
export -f atrilthumb
# loop through all given folders
for folder in "$@" ; do
find "$folder" -type f -exec bash -c evincethumb {} \;
done
Now, it seems preview does work. But I don't want to do it on my own. In the past, the atril-thumbnailer used to run in the background, and slowly add icons to .thumbnaild.
Do you know if it changed? Is there a parameter in mate-session that controls this?
- original code from here:
http://askubuntu.com/questions/199110/how-can-i-instruct-nautilus-to-pre-generate-thumbnails
from atril.
I think I fount the problem:
[36] ozdeb@yenitiny:~ $ atril-thumbnailer -s 128 Poster_Preview.odp out.png
(atril-thumbnailer:28005): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
(atril-thumbnailer:28005): Gdk-CRITICAL **: _gdk_pixmap_new: assertion `(drawable != NULL) || (depth != -1)' failed
(atril-thumbnailer:28005): Gdk-CRITICAL **: IA__gdk_gc_new: assertion `drawable != NULL' failed
(atril-thumbnailer:28005): Gdk-CRITICAL **: IA__gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
^C
[37] ozdeb@yenitiny:~ $ atril-thumbnailer -s 128 3022.pdf out.png
[38] ozdeb@yenitiny:~ $
As you can see the thumbnailer crashes on odp files. This caused the process to hand, and so caja, did not preview new files. On PDF files, it was runing fine. I would be happy if someone could confirm it.
from atril.
I changed the title of the issue
evince solved this issue removing the backend:
https://git.gnome.org/browse/evince/commit/backend?h=gnome-3-0&id=d242e00f56fb5d0dbad00f9abe13903198104838
we'll try to fix it
from atril.
@oz123 I pushed this commit from evince:
360c465
at least, it allows to continue thumbnailing and dont break caja
from atril.
@stefano-k , do you know what does the gnome developer means "Broken API" ? GTK API or Impress API ?
IMHO, Impress and ODT are too important to drop this file format.
[open rant]
GNOME Dev's are really busy implementing features that no one wants, but they drop essential components of free software.
IMHO, this is just not nice towards the developers of LibreOffice (but maybe newer gnome version do have a preview ... who knows...)
[/rant]
from atril.
ODP backend is broken, and we have decided to remove it.
from atril.
Related Issues (20)
- "Fat font" in particular PDF files (Firefox PDF viewer shows correctly)
- Scrollbar missed when mouse cursor at screen's right edge HOT 5
- Control E for "Expand Window to Fit" doesn't maximize the windows.
- Bug tracker displayed message to report issue HOT 1
- Epub document navigated by CTRL+PageUP or PageDOWN turns on huge CPU-USAGE
- Atril should not use the filename extension to determine the file type
- Unable to success execute configure script (autogen.sh) HOT 1
- Blured in fullscreen mode if I have used GDK_DPI_SCALE & GDK_SCALE
- Crash in page_set_function when EPUB navMap refers to missing file
- [Feature request]: Dark mode with inverted colors
- 1.27.0: test suite fails
- gcc14: Latest 1.26.2 release failed to build on fedora rawhide HOT 8
- Atril since 1.27.1 depends on mate-desktop HOT 4
- Can't print PNG files
- Missing feature: managing accented letters in searches
- Some text in PDFs cut off at the top HOT 8
- Unable to open .cbr and .cbz files after upgrade to version 1.24.0-1+deb11u1 from 1.24.0-1 HOT 2
- [Feature request] Option for gapless pages
- Incorrect mimetype for .cbr comic files
- get black dots reading a epub document
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atril.