We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ea6f2 commit 8c5d698Copy full SHA for 8c5d698
1 file changed
src/jpeg.imageio/jpegoutput.cpp
@@ -573,8 +573,10 @@ JpgOutput::copy_image(ImageInput* in)
573
ImageSpec in_spec;
574
ImageSpec config_spec;
575
config_spec.attribute("_jpeg:raw", 1);
576
- if (!in->open(in_name, in_spec, config_spec))
+ if (!in->open(in_name, in_spec, config_spec)) {
577
+ errorfmt("{}", in->geterror());
578
return false;
579
+ }
580
581
// Re-open the output
582
std::string out_name = m_filename;
0 commit comments