yoonsikp / pycubelut

Tool for Applying Adobe Cube LUTs to Images
MIT License
92 stars 18 forks source link

pycubelut #3

Closed isdito closed 4 years ago

isdito commented 4 years ago

hello Thank you for the program.

I download pycubelut, but I see that is a .exe file with a nice help,

it is posible import the class or function inside another py file or only it is a exe file.

At the moment, as the luts are thought to be unprotected, we are looking at how to supply the luts in an array of luts

reggards

yoonsikp commented 4 years ago

Hello,

You can use the following python commands once you install the package.

>>> import pycubelut
>>> mylut = pycubelut.CubeLUT("test.cube")
>>> pycubelut.process_image("image.jpeg", "output/folder", 0, mylut, False)
isdito commented 4 years ago

hello, it is posible put the lut inside a position in array like this. I need put inside the py file.

import pycubelut

luts=[["""0.0980 0.0392 0.0863
0.1176 0.0471 0.0941
0.1255 0.0471 0.0941
0.1451 0.0510 0.0980
0.1647 0.0549 0.0980
.....
1.0000 0.9725 0.9490
1.0000 0.9725 0.9490
0.9961 0.9765 0.9490
1.0000 0.9765 0.9529"""]]

mylut = CubeLUT(luts[0])pycubelut.process_image("C:\Users\popo\Documents\photofriends\14062015-_DSC0825.jpg", "C:\Users\popo\Documents\photofriends\14062015-_DSC0825_prueba.jpg", 0, mylut, False)

But this not works say me

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

Any method to realease this?

Reggards

yoonsikp commented 4 years ago

You will need to change the following from:

with open(lut_path, 'r') as lut_file:
            for line in lut_file.readlines():

to

      for line in lut_file:

and fix all the indenting for the function.

Also, manually set the size of the lut somewhere in that function with:

self.size = <the integer you want here>
yoonsikp commented 4 years ago

I can't really help you with multiprocessing, but let me know if there are any other problems.

isdito commented 4 years ago

ok thank you