Comments (6)
unreadable means that the file isn't an image nor a video. You can inspect the code that produces the info.
The TypeError at the end doesn't depend on the fact it's working with a gif: I have gif's in my album folder and they don't produce any error. Probably that specific gif has some characteristic we must study more deeply. Could you kindly attacch it? Anyway I'm going to collect some other gif in order to reproduce the issue.
Besides that, could you please use the editor code feature when pasting program output? thank you?
from myphotoshare.
@kosli, I reorganized the way little images (and gif's are always among them) are treated and showed, in development branch.
Wish you check it? Perhaps the scanner is faster then before
from myphotoshare.
@paolobenve thank you very much.
i just checked with the latest revision and still have an error on a gif file:
2017-07-26T10:48:46.248542 | | | | | | | |--[ processing image/video] 01.gif
Traceback (most recent call last):
File "/var/www/download.kos.li/private/photofloat/scanner/main.py", line 165, in <module>
main()
File "/var/www/download.kos.li/private/photofloat/scanner/main.py", line 158, in main
TreeWalker(Options.config['album_path'], Options.config['cache_path'])
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 28, in __init__
folders_album = self.walk(self.album_path)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 133, in walk
next_walked_album = self.walk(entry)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 133, in walk
next_walked_album = self.walk(entry)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 133, in walk
next_walked_album = self.walk(entry)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 133, in walk
next_walked_album = self.walk(entry)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 133, in walk
next_walked_album = self.walk(entry)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 133, in walk
next_walked_album = self.walk(entry)
File "/var/www/clients/client3/web131/private/photofloat/scanner/TreeWalker.py", line 167, in walk
media = Media(entry, self.cache_path)
File "/var/www/clients/client3/web131/private/photofloat/scanner/PhotoAlbum.py", line 184, in __init__
self._photo_thumbnails(image, media_path, thumbs_path)
File "/var/www/clients/client3/web131/private/photofloat/scanner/PhotoAlbum.py", line 372, in _photo_thumbnails
self._photo_thumbnails_cascade(image, photo_path, thumbs_path)
File "/var/www/clients/client3/web131/private/photofloat/scanner/PhotoAlbum.py", line 456, in _photo_thumbnails_cascade
thumb = self._thumbnail(image_to_start_from, photo_path, thumbs_path, thumb_size)
File "/var/www/clients/client3/web131/private/photofloat/scanner/PhotoAlbum.py", line 555, in _thumbnail
start_image_copy = self.resize_canvas(start_image_copy, thumb_size, Options.config['background_color'], False)
File "/var/www/clients/client3/web131/private/photofloat/scanner/PhotoAlbum.py", line 338, in resize_canvas
newImage = Image.new(mode, (canvas_width, canvas_height), background_color)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1763, in new
return Image()._new(core.fill(mode, size, color))
TypeError: an integer is required
Please find attached the gif picture:
is there a way that i could exclude certain folders, e.g. an idea would be to add a file ".photofloat.exclude" or so in a folder that shouldn't be scanned by photofloat. this would make it flexible and i wouldn't need to keep a central list of folders that should be excluded, but the information is "self-included".
from myphotoshare.
The problem is not the gif, it's that - unluckly - the int(round
fix was lost... it's my fault, I beg your pardon
Now master should be ok, and should be able to manage little gif's
from myphotoshare.
closing as I think it's fixed, feel free to reopen if needed
from myphotoshare.
thanks. for the moment the scanner is still running, looks so far okay.
i'll create a new ticket for the "excluding" idea...
from myphotoshare.
Related Issues (20)
- album.ini metadata has trouble with Python 2 when filenames have accented characters HOT 4
- ready for 3.4? HOT 20
- managing stop words in js? HOT 2
- album.ini name in options file HOT 7
- Problems with non-occidental languages? HOT 2
- Roadmap for version 3.5 HOT 3
- Optimization of index files creation HOT 4
- do not generate nor save virtual albums if not needed HOT 6
- Add options to display descriptions
- Bugs when used on iPad or mobile phone HOT 5
- privacy concerns when showing original image HOT 4
- Allow % characters in `album.ini` files
- same image in different folders generates trouble in search result
- space for folder name not corrected
- social bar: add a button to get the share link copied to clipboard
- Add option to go directly to image fullscreen
- Set cache subfolders number according to media number
- use os.walk to scan directories in TreeWalker.walk() HOT 1
- wrong album caption height
- copy copyright info to reduced size images and thumbnails
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 myphotoshare.