Comments (4)
Thanks a lot @justinwzig and @BernardZhao! Sorry for not being responsive.
from pixelsort.
I think this has to do with using the -a angle parameter while also using a file interval input. I also got the same error, but only when the angle was not 0.
from pixelsort.
#10 Fixed this issue, this can be closed now.
from pixelsort.
Hi, I'm also getting this issue, but I'm not doing anything with angles.
Here's the operation I used:
pixelsort$ python3 pixelsort.py ../Downloads/Inverted_Lion-1.jpg -i file -f ../Desktop/intervals.png
And here's the error I got, same as the one above:
Interval function: file
Randomness: 0 %
Opening image...
Converting to RGBA...
Rotating image...
Getting data...
Getting pixels...
Determining intervals...
Cleaning up edges...
Traceback (most recent call last):
File "pixelsort.py", line 56, in
main()
File "pixelsort.py", line 31, in main
intervals = argparams.interval_function(pixels, argparams)
File "/Users/alenagusakov/pixelsort/interval.py", line 118, in file_mask
if file_pixels[y][x] == constants.black_pixel and file_pixels[y][x - 1] == constants.black_pixel:
IndexError: list index out of range
Edit 1: I think the issue might be the fact that the images are differently sized perhaps?
Edit 2: yup, resized the interval image, fixed the problem.
from pixelsort.
Related Issues (12)
- Crash when trying to pixelsort vertically HOT 4
- column of transparent pixels HOT 4
- maximum is completely redundant HOT 1
- TypeError: 'int' object is not subscriptable HOT 3
- Extra interval function file_edges? HOT 1
- Runtime errors when trying to run examples HOT 1
- Mask is not rotated and potentially gives errors when rotate and mask are both specified HOT 1
- Syntax warning
- Rotation sorting issue
- Missing files in sdist
- Pixelsorting on Curves [Feature Request]
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 pixelsort.