Comments (3)
Hi @xe4me. Thanks for giving it a go!
Assuming you are using the exact images you've included here and are not using the tile size option (-o
) your resulting output fille will have dimensions of 61440x34560! Your OS most-likely can't open/render the file as it's simply too huge. Your source image has dimensions of 3840x2160 which is way too large! Remember each pixel in the source image is a tile in the output image.
If I resize your source image using ImageMagick so it has a width of 70 pixels...
convert source.png -resize 70 source2.png
...and run it through emosaic you will get this:
Hope that make sense!
from emosaic.
No worries. Glad to help. 🤓
Yes I was thinking the same. Inputing a file which is too-big or providing an empty directory should throw a useful error. Was also thinking of adding -v, --verbose
option which prints out the step it's currently on.
Fun fact. That 61440x34560 image can be shrunken down by 25% and it will open (though the mosaic effect kinda gets lost).
convert output.png -resize 25% output2.png
Kinda cool Rust doesn't balk at creating such a large image 😃
from emosaic.
Wow, I wasn't expecting you to be so quick on the answer. Thank you very very much.
Perhaps we/I could add some error/warnings about this inside the library itself, it would help a lot.
Much appreciated.
from emosaic.
Related Issues (2)
- Lacking Rust example HOT 1
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 emosaic.