@@ -242,8 +242,8 @@ def image_data_response(image):
242
242
args .get ('outOfPrimaryColourspaceGamut' , False )),
243
243
out_of_secondary_colourspace_gamut = _bool_to_bool (
244
244
args .get ('outOfSecondaryColourspaceGamut' , False )),
245
- out_of_pointer_gamut = _bool_to_bool (
246
- args . get ( 'outOfPointerGamut' , False )),
245
+ out_of_pointer_gamut = _bool_to_bool (args . get ( 'outOfPointerGamut' ,
246
+ False )),
247
247
saturate = _bool_to_bool (args .get ('saturate' , False )))
248
248
249
249
response = Response (json_data , status = 200 , mimetype = 'application/json' )
@@ -306,8 +306,8 @@ def RGB_image_scatter_visual_response(image):
306
306
args .get ('outOfPrimaryColourspaceGamut' , False )),
307
307
out_of_secondary_colourspace_gamut = _bool_to_bool (
308
308
args .get ('outOfSecondaryColourspaceGamut' , False )),
309
- out_of_pointer_gamut = _bool_to_bool (
310
- args . get ( 'outOfPointerGamut' , False )),
309
+ out_of_pointer_gamut = _bool_to_bool (args . get ( 'outOfPointerGamut' ,
310
+ False )),
311
311
sub_sampling = int (args .get ('subSampling' , 25 )),
312
312
saturate = _bool_to_bool (args .get ('saturate' , False )),
313
313
)
@@ -355,8 +355,8 @@ def pointer_gamut_visual_response():
355
355
"""
356
356
357
357
args = request .args
358
- json_data = pointer_gamut_visual (
359
- colourspace_model = args . get ( 'colourspaceModel' , COLOURSPACE_MODEL ), )
358
+ json_data = pointer_gamut_visual (colourspace_model = args . get (
359
+ 'colourspaceModel' , COLOURSPACE_MODEL ), )
360
360
361
361
response = Response (json_data , status = 200 , mimetype = 'application/json' )
362
362
response .headers ['X-Content-Length' ] = len (json_data )
@@ -377,8 +377,8 @@ def visible_spectrum_visual_response():
377
377
"""
378
378
379
379
args = request .args
380
- json_data = visible_spectrum_visual (
381
- colourspace_model = args . get ( 'colourspaceModel' , COLOURSPACE_MODEL ), )
380
+ json_data = visible_spectrum_visual (colourspace_model = args . get (
381
+ 'colourspaceModel' , COLOURSPACE_MODEL ), )
382
382
383
383
response = Response (json_data , status = 200 , mimetype = 'application/json' )
384
384
response .headers ['X-Content-Length' ] = len (json_data )
@@ -397,16 +397,16 @@ def index():
397
397
Index response.
398
398
"""
399
399
400
- return render_template (
401
- 'index.html' ,
402
- colour_analysis_js = os . environ . get ( 'COLOUR_ANALYSIS_JS' ,
403
- '/static/js/colour-analysis.js' ),
404
- image = sorted (os .listdir (IMAGES_DIRECTORY ))[0 ],
405
- primary_colourspace = PRIMARY_COLOURSPACE ,
406
- secondary_colourspace = SECONDARY_COLOURSPACE ,
407
- image_colourspace = IMAGE_COLOURSPACE ,
408
- image_decoding_cctf = IMAGE_CCTF_DECODING ,
409
- colourspace_model = COLOURSPACE_MODEL )
400
+ return render_template ('index.html' ,
401
+ colour_analysis_js = os . environ . get (
402
+ 'COLOUR_ANALYSIS_JS' ,
403
+ '/static/js/colour-analysis.js' ),
404
+ image = sorted (os .listdir (IMAGES_DIRECTORY ))[0 ],
405
+ primary_colourspace = PRIMARY_COLOURSPACE ,
406
+ secondary_colourspace = SECONDARY_COLOURSPACE ,
407
+ image_colourspace = IMAGE_COLOURSPACE ,
408
+ image_decoding_cctf = IMAGE_CCTF_DECODING ,
409
+ colourspace_model = COLOURSPACE_MODEL )
410
410
411
411
412
412
@APP .after_request
0 commit comments