Comments (2)
Interesting. I don't know why this is occurring, but I have a suggestion you can try. Instead of anImage.write[Png](file)
you can try anImage.writeToIO[Png](file)
. This gives you can IO
value you can then chain further operations on to.
I am surprised to see this bug, and I expect my suggestion above will not fix it. Calls to write
end up calling unsafeRunSync
on the JVM, so these operations should block until writing has finished. Perhaps the underlying calls to ImageIO
are not synchronous. The documentation makes no mention of this, though, and it would be surprising behaviour. Another possibility is that the OS is not syncing the data to disk. Are these particularly large files?
from doodle.
Thanks for your answer.
The image is not that big ~150-200kB and the app is running in a K8S pod with distributed storage, so it may be a problem of data sync I encounter because I try to read it as soon as it is produced.
from doodle.
Related Issues (20)
- Implement `flatMap` for `Picture`
- Add `boundingBox` syntax for `Size`
- Improve type inference HOT 1
- Add SVG documentation
- Parse hex strings into `Color`
- SVG must not fill open paths HOT 2
- Support perceptually-based color description
- Port minitest tests to munit
- Image saved to file does not have size of Frame HOT 1
- Question: How do we set a shape position relative to a Frame origin HOT 4
- Unexpected behaviour with `Picture` monad and Java2D renderer HOT 2
- BufferedImageConverter cleanup HOT 3
- Consistent naming of writers HOT 2
- Add tests for `BufferedImageWriter`
- Abstract default frame HOT 3
- Writer conveniences
- Java Implementation Cleanup
- Configurable delay between frames in animated GIF HOT 2
- Allow directly setting the width and height of the bounding box
- Create browser canvas backend
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 doodle.