Comments (7)
This issue can be closed. The problem was, that some pictures are broken (size was only 16KB).
from sigal.
Thanks for the feedback,
Let's keep the issue opened for now, I will see to catch the exception and add an error log.
from sigal.
Maybe this is related. I got a bit different IOError. I suspect that the JPG file in my collection that caused fatal error got corrupted during ftp transfer. However if I run sigal only on that folder it goes trough without an error.
My sugestion would be that sigal keeps on processing the collection despite fatal error on one of the images. With large multimedia collections it's not that convenient to run sigal over and over again until all faulty images are singled out.
DEBUG: Processor: ResizeToFit
Traceback (most recent call last):
File "/usr/local/bin/sigal", line 9, in <module>
load_entry_point('sigal==0.6.0', 'console_scripts', 'sigal')()
File "/usr/local/lib/python2.7/dist-packages/sigal/__init__.py", line 154, in main
parser.dispatch()
File "/usr/local/lib/python2.7/dist-packages/argh/helpers.py", line 53, in dispatch
return dispatch(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 124, in dispatch
for line in lines:
File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 200, in _execute_command
for line in result:
File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 183, in _call
result = args.function(*positional, **keywords)
File "/usr/local/lib/python2.7/dist-packages/sigal/__init__.py", line 109, in build
gal.build()
File "/usr/local/lib/python2.7/dist-packages/sigal/gallery.py", line 226, in build
self.pool.map_async(worker, media_list).get(9999)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 528, in get
raise self._value
IOError: image file is truncated (35 bytes not processed)
from sigal.
I had the same issue yesterday.
After verifying each image, I run Sigal again with less NCPU and it went trough without an error ...
from sigal.
NCPU didn't work for me.
from sigal.
The problem is in
img = PILImage.open(source)
when source is a broken image file (according to PIL). A dirty workaround would be to wrap generate_image & generate_thumbnail functions in image.py in try/except.
This workaround results in gallery being made, but with blank thumbnails and no preview for broken source images.
from sigal.
A dirty workaround would be to wrap generate_image & generate_thumbnail functions in image.py in try/except.
Yeah, that's something I must look at. Could you send me examples of broken file ?
from sigal.
Related Issues (20)
- Hide an image in a album (but still process it and allow it as a thumbnail)
- Lightgallery/justified gallery theme HOT 4
- In Galleria's fullscreen mode, video's aren't fullscreen like photos are
- Support encrypting videos in the encrypt plugin HOT 1
- Any chance of markdown in Title? HOT 1
- Sigal PNG -> JPEG conversion is broken (with fix?) HOT 1
- keep_orig is broken and has no effect? HOT 4
- After file format conversion, thumbnail generation uses the wrong url HOT 1
- zip_archive is either `False` or a filename, which is confusing. should have zip names depend on album name to make download easier HOT 4
- Have a way to for themes to know all the albums that exists
- Does sigal work on mkv h265 files? HOT 8
- git main fails 31 tests HOT 3
- Encrypt plugin: Password field hidden behind pictures. HOT 2
- Using galleria theme causes empty whitespace in the base index page HOT 2
- Sigal not found HOT 2
- Problems with UTF8 characters on folders HOT 1
- 2.3: Issues with tests HOT 2
- Can't decrypt an encrypted gallery HOT 2
- tests fail with pillow release 10.0.0 HOT 8
- Some files have failed to be processed HOT 5
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 sigal.