Giter Site home page Giter Site logo

Comments (7)

paolobenve avatar paolobenve commented on July 16, 2024

The only thing I can think of is to manage the exception and avoid the error, pushed fix in development master branch,

Do not use development branch, it's still unstable!

the image is not transposed

Perhaps it would be better to consider the image unreadable?

please test it

from myphotoshare.

paolobenve avatar paolobenve commented on July 16, 2024

Is this bug related to python-pillow/Pillow#1510 ?

from myphotoshare.

thomas-olsson avatar thomas-olsson commented on July 16, 2024

I did the same workaround locally, so at least we think alike :-).

Tested the fix. It works as expected.

Might be related to the bug you refer to, but I am not skilled enough to judge... seems the EOF character is 4654, not FF09, it the photo which throws the exception. However, there are other photos in my album with EOF token 4654 and with an orientation which would cause transpose the photos in myphotoshare. I have not confirmed that the transpose code is actually executed though, but reviewing the code and files make if plausible.

from myphotoshare.

paolobenve avatar paolobenve commented on July 16, 2024

ok, but what does it happen with the panorama? is it shown in a weird mode?

from myphotoshare.

thomas-olsson avatar thomas-olsson commented on July 16, 2024

I created it from multiple photos I took. I used Hugin (http://hugin.sourceforge.net/) to stich the photos together. The only weirdness is that it is extremely wide (23392x1600). The stich photo (which is the one causing the error) shows fine in any photo viewing software. With your latest patch, the photo shows up ok in myphotoshare, but upside-down, as it is not transposed.

Attaching the resulting file from myphotoshare.

20160410_100829 jpg_1600

from myphotoshare.

paolobenve avatar paolobenve commented on July 16, 2024

ok

But will be there a way to get it correctly?

from myphotoshare.

thomas-olsson avatar thomas-olsson commented on July 16, 2024

Googling a bit and found that "invalid SOS parameter for sequential JPEG" is not that uncommon.

E.g. http://www.imagemagick.org/discourse-server/viewtopic.php?t=30320

Some examples for how others have addressed this:
owncloud/core#21873
https://stackoverflow.com/questions/35337709/invalid-sos-parameters-for-sequential-jpeg

Personally, I have just this one photo with this problem. So for me, no need to fix this more than catching the exception as done in the latest patch from Paulo. However, if this is a more frequent problem, then perhaps finding a proper solution is more important.

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.