Comments (6)
I can confirm that this happens on some JPEGs, not necessarily progressive.
from stb.
ybb, can you send me such a non-progressive JPEG or a link to one? It might be the same thing or it might be something different, so I need a sample image.
from stb.
Err, sorry. I was too impatient to double-check. They are progressive. Here are some if you need more to test.
These say "bad huffman code":
http://40.media.tumblr.com/424f289d7f2e2a02636b264693a2d159/tumblr_n9rgjzeeXY1r493ruo2_r1_500.jpg
http://41.media.tumblr.com/319546120a728c619dc6e93164040f7d/tumblr_ndg8ez34Ww1qz7ywso1_500.jpg
These say "junk before marker":
http://36.media.tumblr.com/80724ad0d70f6345f0d7b40e69804558/tumblr_ndjttanVnB1qz7ywso1_1280.jpg
http://41.media.tumblr.com/1ce735e8c44894d245305b63f50633c8/tumblr_ndk2jm09Fi1qz7ywso1_1280.jpg
from stb.
Thanks.
from stb.
I'm about to do a new release, so I put some work into this, but I couldn't figure it out. I'm going to have to run these files through another jpeg decoder and see where I deviate, but getting another jpeg decoder set up will be a pain... maybe for next release.
from stb.
Should be fixed in version 2.05
from stb.
Related Issues (20)
- Is the "DETAILED USAGE" section of `stb_truetype.h` correct/updated? HOT 3
- A way to reuse a buffer when reading `.gif` files HOT 2
- GCC warnings for the hmdel macro HOT 1
- stb_sprintf: not working with 'j' 'z' modifiers
- [text.txt](https://github.com/nothings/stb/files/13457062/text.txt)
- Segmentation fault when load an corruption pictures in stbi_load_from_memory HOT 2
- stb_image incorrectly sees png as 16bit. HOT 5
- Completion of error handling
- Request for CMakeLists.txt Integration for Improved Build System
- stb_truetype.h: letter T has rasterization artefacts for Roboto-Regular.ttf HOT 3
- [stb-vorbis] Some multi-channel OGG Vorbis files gets wrongly decoded
- Two errors for use of uninitialized memory
- Long double support
- stb_truetype: GPOS advance always 0 (while GPOS and KERN tables exist), while KERN works fine
- stb_truetype: stbtt_GetCodepointHMetrics() outputs weird advanceWidth values after being called several times HOT 1
- stb_image_resize2: assert/crash on resizing 2x2 to 1x1 images with wrap HOT 5
- stb_image: loading of an invalid JPEG image succeeds
- problem in reading libraries HOT 1
- 16 bit PNG Support
- Array Out Of Bounds - stb_image_resize2.h HOT 12
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 stb.