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

Can't save images #15

Closed
t-ae opened this issue Jul 27, 2017 · 1 comment
Closed

Can't save images #15

t-ae opened this issue Jul 27, 2017 · 1 comment

Comments

@t-ae
Copy link
Contributor

t-ae commented Jul 27, 2017

Sample project:
https://github.com/t-ae/EasyImagySaveExperiment

I'm trying to save Image via NSImage/CGImage.
https://github.com/t-ae/EasyImagySaveExperiment/blob/master/EasyImagySaveExperiment/ViewController.swift#L21-L25

Then this NSImage's tiffRepresentation returns nil with error message below,

CGImageDestinationFinalize failed for output type 'public.tiff'

And CGImage also doesn't generate png data.
I suspect this property has a bug.

@koher
Copy link
Owner

koher commented Aug 4, 2017

Fixed by #16 .

@koher koher closed this as completed Aug 4, 2017
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