Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 379365

Summary: media-gfx/luminance-hdr 2.0.2 batch processing at minimal size
Product: Gentoo Linux Reporter: Jonathan Müller <muellerjonathan>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes the batch file size problem
Fix for the batch file-size problem

Description Jonathan Müller 2011-08-16 09:59:32 UTC
In luminance-hdr 2.0.2: When using the batch window to tone-map hdr files, the output is always at a minimal size of 400px width, instead of the width of the original file.

Reproducible: Always

Steps to Reproduce:
1. Open luminance-hdr, choose Tools (menu) -> Batch Tone Mapping
2. load some file, some options for tonemapping and an output directory
3. Click on "Start"
Actual Results:  
The resulting JPG file is only 400px wide with a 15MP input file

Expected Results:  
The resulting JPG file should have been >4500px wide

The problem is in the file src/Batch/BatchTMJob.cpp. The author apparently forgot to remove the line "opts->xsize = 400; // DEBUG", which causes this behaviour...
Comment 1 Jonathan Müller 2011-08-16 10:00:18 UTC
Created attachment 283533 [details, diff]
Fixes the batch file size problem
Comment 2 Jonathan Müller 2011-08-16 10:20:58 UTC
Unfortunately, the patch above causes luminance-hdr to sometimes crash... Which it does not when processing 400px-files.
Comment 3 Jonathan Müller 2011-08-16 11:42:39 UTC
Created attachment 283545 [details, diff]
Fix for the batch file-size problem

This time, the patch really works. Sorry for previously uploading a not-working one.
Comment 4 Tim Harder gentoo-dev 2011-08-26 10:43:03 UTC
Fixed in 2.1.0 that I just added to CVS.

Also, please use unified diffs in the future for attached patches. Thanks.