Code: Select all
brew install gmic
The script takes a LUT input (in my case .CUBE) and converts it directly to a Hald Clut PNG
Code: Select all
gmic -input_cube /path/to/lutfile.cube -r 64,64,64,3,3 -r 512,512,1,3,-1 -o haldclut_output.png
Code: Select all
brew install gmic
Code: Select all
gmic -input_cube /path/to/lutfile.cube -r 64,64,64,3,3 -r 512,512,1,3,-1 -o haldclut_output.png
Post this same message to the Developer's forum.How can we make a feature request to support .cube and/or other basic 3D Lut data files? (.lut, .shlut, .3dl, .cube)
Post to the Developers forum: http://www.imagemagick.org/discourse-se ... 1351dd23ddB4adle7 wrote:How can we make a feature request to ...
It already does, in the sense that if the hald-clut contains values outside 0 to 100%, those values will be used in output. However the input coordinates to the hald-clut correspond to input values of 0% at top-left to 100% at bottom-right. Do you want this to be more flexible? If so, please describe.B4adle7 wrote:And it may remove some of the HALD limitations, such as support for negative or over 100% values.
Unsure of the note here, but just in case. .lut is a "Look Up Table". Same data as in a .cube, shlut, or .3dl file. Basically the non-image version of a HALD CLUT file. Since Imagemagick supports CDL files (.cdl, .cc) (Color Decision List), that are XML data files of color transforms, would think doing the same with their LUT counter-parts would be an of-course.If any of those formats are valid image formats, then a suffix (.lut etc) isn't sufficient.
Agreed.wlange wrote: ↑2016-11-29T13:14:50-07:00 I see. The most common ones seem to be Autodesk .3dl and Adobe .cube. If these don't differ in themselves, that might be a good start.
I'm not an expert in this field. But if ImageMagick was able to utilize most common standards, it might help some folks. Just my $0,02.
Can you provide any help or information as to how to convert the 3Dlut format into a HALD image?B4adle7 wrote:Yes, it is fairly straight forward convert a .3dl or .cube file into a usable HALD image
Code: Select all
magick cube:FGCineVibrant.cube FGCineVibrant.cube.png
Oh.. I need to check this out.fmw42 wrote: ↑2018-12-13T16:04:11-07:00 ImageMagick does not have OCIOLutTransform node, as far as I know. What is it? Is that code available?
For imagemagick purposes, we do not have any mechanism to apply the CUBE LUT to a HALD image, such as OCIOLutTransform node, as far as I know. What is OCIOLutTransform? Is that code available?
So we need a way to convert the CUBE LUT data directly to HALD format.
Right now in IM 7.0.8.16, we can convert a CUBE LUT into an image.
http://www.fmwconcepts.com/misc_tests/c ... brant.cube
IM hald cluts are limited to square. If the hald image is non-square, only the top-left square within the image is used.B4adle7 wrote:I was hoping they weren't restricted to square, but not confirmed yet.