@@ -242,8 +242,8 @@ def image_data_response(image):
242242 args .get ('outOfPrimaryColourspaceGamut' , False )),
243243 out_of_secondary_colourspace_gamut = _bool_to_bool (
244244 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 )),
247247 saturate = _bool_to_bool (args .get ('saturate' , False )))
248248
249249 response = Response (json_data , status = 200 , mimetype = 'application/json' )
@@ -306,8 +306,8 @@ def RGB_image_scatter_visual_response(image):
306306 args .get ('outOfPrimaryColourspaceGamut' , False )),
307307 out_of_secondary_colourspace_gamut = _bool_to_bool (
308308 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 )),
311311 sub_sampling = int (args .get ('subSampling' , 25 )),
312312 saturate = _bool_to_bool (args .get ('saturate' , False )),
313313 )
@@ -355,8 +355,8 @@ def pointer_gamut_visual_response():
355355 """
356356
357357 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 ), )
360360
361361 response = Response (json_data , status = 200 , mimetype = 'application/json' )
362362 response .headers ['X-Content-Length' ] = len (json_data )
@@ -377,8 +377,8 @@ def visible_spectrum_visual_response():
377377 """
378378
379379 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 ), )
382382
383383 response = Response (json_data , status = 200 , mimetype = 'application/json' )
384384 response .headers ['X-Content-Length' ] = len (json_data )
@@ -397,16 +397,16 @@ def index():
397397 Index response.
398398 """
399399
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 )
410410
411411
412412@APP .after_request
0 commit comments