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

Any chance support png? #25

Closed
adouggy opened this issue Jul 10, 2014 · 4 comments
Closed

Any chance support png? #25

adouggy opened this issue Jul 10, 2014 · 4 comments

Comments

@adouggy
Copy link

adouggy commented Jul 10, 2014

No description provided.

@buaazp
Copy link
Owner

buaazp commented Jul 10, 2014

Format png is supported.

@adouggy
Copy link
Author

adouggy commented Jul 10, 2014

Thanks for reply, that is great if it is supported.
Can you tell me how to achieve it? After I upload a png file to zimg, I got only jpg format (at least all transparent parts gone) when I retrieve it via web.
thanks in advance.

@buaazp
Copy link
Owner

buaazp commented Jul 10, 2014

That's right. The default format that zimg returns to the client is JPEG. Because url:port/MD5 returns a compressed image to reduce the size of HTTP package. If you want to get the original image, you can use p=0 behind the MD5 just like this:

[original image PNG]
http://zimg.buaa.us:4869/82954566368619e6f8fb2a5250a2914b?p=0
[compressed image JPEG]
http://zimg.buaa.us:4869/82954566368619e6f8fb2a5250a2914b

And you should know that any resize or graystyle action will change the image to JPEG. If you want to get the original format images after processing, maybe you have to wait several days for the new version. zimg v3 is more excellent in image processing.

@adouggy
Copy link
Author

adouggy commented Jul 11, 2014

wonderful and thanks for replying!

@adouggy adouggy closed this as completed Jul 11, 2014
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