Comments (7)
Hi, do you have a sample image?
from juicy.pixels.
You can get one from the URL below.
It should be a 32 bit GeoTIFF, which contains some extra tags for georeferencing, so the error message did not come unexpected. I'm just trying to identify what the parsing process actually stumbles over, to see if it can be helped.
from juicy.pixels.
After a quick glance, the image causes various distinct problems in the Tiff parser, I'm going to look after it.
from juicy.pixels.
I've pushed a fix to handle 32bits int monochrome picture, I reduced pixel depth to 16 bits. Is this ok or do you need the full values of the 32bits?
from juicy.pixels.
Awesome! Thanks a lot. That was quick.
Technically the 32bit may be used, since the TIFF is just a container format for arbitrary data in a raster arrangement (temperature data, elevation data in the example, etc.). That said most applications scale the data to the range that is actually used after loading anyway, so this helps a lot.
from juicy.pixels.
I am wondering, is there other color spaces used for these kind of images? I was thinking of RGB/RGBA. If these images are restricted to monochrome, I may add support for them and loading/saving them from Tiff.
from juicy.pixels.
I think that's a semi-safe assumption.
The specification is here: http://www.remotesensing.org/geotiff/spec/contents.html and should be fully Tiff 6.0 compatible.
In practice, I have only seen either "grayscale" raster data, or regular georeferenced images which make use of the RGB* space (you could georeference a scan of a map for example). The latter won't use 32bit. The spec won't prohibit you from using 32bit RGBA for several data layers, but the software I know wouldn't expect data to be layered like this.
from juicy.pixels.
Related Issues (20)
- Check image width on writePixel
- Transparent gifs
- EXIF files are misidentified as TIFF instead of JPEG in metadata
- `readMetadata`, without decoding image HOT 2
- Add option to apply JPEG rotation to image
- Width and height incorrect for exif image
- Loosen bounds on bytestring HOT 1
- What does this sentence means?
- Refine(cast) DynamicImage to specific Image HOT 1
- Read EXIF data also from PNGs
- Distortion (and possibly segfault) in decoding a certain JPEG HOT 2
- Impossible - typeOfData : Exifone
- Plans to encode webp? HOT 2
- Loosen bounds on Vector
- add "instance TestEquality Keys"
- Infinite loop in palettize
- The test suite never fails
- `Metadatas` skips over entries that contain non-ascii unicode characters.
- Revise bounds on hackage to allow latest deepseq
- Missing changelog for 3.3.8
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 juicy.pixels.