Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNG support? #34

Open
bingo12345 opened this issue Apr 6, 2016 · 4 comments
Open

PNG support? #34

bingo12345 opened this issue Apr 6, 2016 · 4 comments

Comments

@bingo12345
Copy link

i have no time to test png now. thanks for your work. i will be glad if you give short answer. PNG support?

@andersbll
Copy link
Owner

Yes.

@bingo12345
Copy link
Author

How about PNG transparent tile? is there problem with it?

@andersbll
Copy link
Owner

Just discard the alpha channel. This can be done from Python by replacing

def imread(path):
    return scipy.misc.imread(path).astype(dp.float_)

with

def imread(path):
    return scipy.misc.imread(path).astype(dp.float_)[..., :3]

@bingo12345
Copy link
Author

great response! have good time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants