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

Error with saving #378

Open
nagayev opened this issue Feb 16, 2023 · 0 comments
Open

Error with saving #378

nagayev opened this issue Feb 16, 2023 · 0 comments

Comments

@nagayev
Copy link

nagayev commented Feb 16, 2023

Hello. My code is extremly simple:

cimg_library::CImg<unsigned char> img("test.png");
invert(img);
img.save("test.png"); //Error with saving

invert is a user-defined function.

Error:

[CImg] *** CImgIOException *** cimg::fopen(): Failed to open file 'test.png' with mode 'wb'.
terminate called after throwing an instance of 'cimg_library::CImgIOException'
  what():  cimg::fopen(): Failed to open file 'test.png' with mode 'wb'.
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

1 participant