Comments (7)
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.
Is this bug related to python-pillow/Pillow#1510 ?
from myphotoshare.
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.
ok, but what does it happen with the panorama? is it shown in a weird mode?
from myphotoshare.
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.
from myphotoshare.
ok
But will be there a way to get it correctly?
from myphotoshare.
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)
- 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.