Skip to content

好象无法支持TIFF格式的载入 #330

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

Closed
windbell2 opened this issue Apr 2, 2018 · 4 comments
Closed

好象无法支持TIFF格式的载入 #330

windbell2 opened this issue Apr 2, 2018 · 4 comments

Comments

@windbell2
Copy link

windbell2 commented Apr 2, 2018

我看有个UTIF.js,不知可否借用一下

@fengyuanchen
Copy link
Owner

Demo?

@windbell2
Copy link
Author

可能我的表达有问题,
我看demo("https://fengyuanchen.github.io/photo-editor/"和"https://fengyuanchen.github.io/cropperjs")中的 file input 有写 accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff" ,其中有tiff格式,选了一个该格式的图片。但没有呈现成功,不知道cropperjs是否支持tiff格式
如果不支持,可否增加这种图片的解析

@fengyuanchen
Copy link
Owner

目前好像只有Safari浏览器支持TIFF格式的图片,在Safari中是可以正常裁切TIFF图片的。

参考:https://stackoverflow.com/questions/2176991/display-tiff-image-in-all-web-browser

@windbell2
Copy link
Author

thankq,
我在其它浏览器中。先使用UTif解码到canvas上。然后导出dataUrl生成img dom,然后再使用cropperjs解决了这个问题,只可惜暂时不能save为对应压缩格式的tiff,正在研究中

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