Suprhimp commited on
Commit
3938fda
1 Parent(s): a23ea39
lib/__pycache__/glcontext.cpython-310.pyc ADDED
Binary file (3.82 kB). View file
 
opengl.py CHANGED
@@ -29,7 +29,7 @@ from utils.settings import set_options
29
 
30
  def image_enhance(image, exposure, saturation, contrast, brightness, gamma, shadows, highlights, whites, blacks,
31
  clarity, temperature, sharpness):
32
- create_opengl_context((image.width, image.height))
33
  # Initialize glfw
34
  # if not glfw.init():
35
  # print('error in init')
@@ -403,7 +403,7 @@ def image_enhance(image, exposure, saturation, contrast, brightness, gamma, shad
403
  image_out = numpy.frombuffer(image_buffer, dtype=numpy.uint8)
404
  image_out = image_out.reshape(image.height, image.width, 4)
405
  # glfw.terminate()
406
- img = Image.fromarray(image_out, 'RGB')
407
 
408
 
409
  buffered = BytesIO()
 
29
 
30
  def image_enhance(image, exposure, saturation, contrast, brightness, gamma, shadows, highlights, whites, blacks,
31
  clarity, temperature, sharpness):
32
+ create_opengl_context()
33
  # Initialize glfw
34
  # if not glfw.init():
35
  # print('error in init')
 
403
  image_out = numpy.frombuffer(image_buffer, dtype=numpy.uint8)
404
  image_out = image_out.reshape(image.height, image.width, 4)
405
  # glfw.terminate()
406
+ img = Image.fromarray(image_out, 'RGBA')
407
 
408
 
409
  buffered = BytesIO()