Comments (7)
I checked the type of thumb_size, it results to be an integer.
php-gd only deals with php code
i'm using Python 2.7.12, I don't think a point version matters
have you updated to current master?
try inserting this debug line before line 551 of PhotoAlbum.py:
print "------ ", type(thumb_size)
and check wether thumb_size is actually an integer.
Obviously you must delete the cache before launching the scanner in order to pass through that code point
from myphotoshare.
i used the latest release (2.3) and added the print line, see the output below. will check now with the lastet version from master. thanks.
2017-07-24T00:02:58.866737 [method] cascade thumbnail generation
2017-07-24T00:02:58.872881 |--[saving json options file] /var/www/download.kos.li/web/photofloat/options.json
2017-07-24T00:02:58.873200 |--[Next level folder:] albums
2017-07-24T00:02:58.968069 | |--[Next level folder:] 1999
2017-07-24T00:02:58.968656 | | |--[Next level folder:] 1999-10-24 - Briga99
2017-07-24T00:02:58.979479 | | | |--[ processing image/video] DCP00963.JPG
2017-07-24T00:02:59.232638 | | | | |--[reducing size] 1600
2017-07-24T00:02:59.302537 | | | | |--[reducing size] 1200
------ <type 'int'>
2017-07-24T00:02:59.460127 | | | | |--[reducing size] 800
------ <type 'int'>
2017-07-24T00:02:59.490248 | | | | |--[thumbing for albums] 200, fit size
------ <type 'int'>
2017-07-24T00:02:59.520929 | | | | |--[thumbing for albums] 200, square
------ <type 'float'>
from myphotoshare.
still the same when using commit d55f717 :-(
from myphotoshare.
haven't used python for a while, but wouldn't the round command return a float? e.g. https://github.com/paolobenve/photofloat/blob/master/scanner/PhotoAlbum.py#L546
https://docs.python.org/2/library/functions.html#round
from myphotoshare.
extending the mentioned line with int(round(...))
seems to fix the issue.... will see how the pictures look like.... but it will take a while for 130k pictures....
from myphotoshare.
ok, fixed in master, there where more round calls without int
Thank you very much
from myphotoshare.
thanks a lot. works now for me. at least so far, see the other new issue :-O
from myphotoshare.
Related Issues (20)
- 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
- 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
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.