Git Product home page Git Product logo

Comments (7)

paolobenve avatar paolobenve commented on June 29, 2024

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.

kosli avatar kosli commented on June 29, 2024

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.

kosli avatar kosli commented on June 29, 2024

still the same when using commit d55f717 :-(

from myphotoshare.

kosli avatar kosli commented on June 29, 2024

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.

kosli avatar kosli commented on June 29, 2024

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.

paolobenve avatar paolobenve commented on June 29, 2024

ok, fixed in master, there where more round calls without int

Thank you very much

from myphotoshare.

kosli avatar kosli commented on June 29, 2024

thanks a lot. works now for me. at least so far, see the other new issue :-O

from myphotoshare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.