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

[BUG] Crash with exif data #759

Open
FrankEscobar opened this issue Jan 6, 2025 · 1 comment
Open

[BUG] Crash with exif data #759

FrankEscobar opened this issue Jan 6, 2025 · 1 comment

Comments

@FrankEscobar
Copy link

I'm trying to add some metadata to the exif list like:

options->exif.clear();
options->exif.push_back("ImageDescription=Test Description");

try {
    jpeg_save(spans, imgBuf.info, imgBuf.metadata, imgBuf.filename, app.CameraModel(), options);
    std::cout << "Saved Flawlessly" << std::endl;
} catch (const std::exception& e) {
    std::cerr << "Error saving JPEG: " << e.what() << std::endl;
}

but it always fails with

Error saving JPEG: failed to read EXIF IFD and tag

Any tip on this? Thank you in advance

@naushir
Copy link
Collaborator

naushir commented Jan 9, 2025

Can you run under a debugger (like gdb) and see exactly where this is blowing up?

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