[Digikam-devel] Re: how to properly store a curve in XML
    Johannes Wienke 
    jwienke at techfak.uni-bielefeld.de
       
    Wed Nov 10 16:10:57 GMT 2010
    
    
  
On 11/10/2010 03:42 PM, Marcel Wiesweg wrote:
> when a curves filter is applied, we need to store the curves in the
> FilterAction written to metadata.
> Now, the problem is that the CurvesFilter has five polygon each holding
> potentially 65536 values - this is not very suitable for writing to XML.
>
> I see two other places where a curve is saved:
> - CurvesWidget::saveCurve
> - ImageCurves::saveCurvesToGimpCurvesFile.
>
> Are digikam curves Bezier curves? Then we could encode them in SVG style:
> http://apike.ca/prog_svg_paths.html
>
> Which would be the best way to store curves efficiently and correctly?
Every curve is defined by keypoints by the user. Why not simply store 
these keypoints?
Johannes
    
    
More information about the Digikam-devel
mailing list