Html

generate.parts.html.set_open_html_file(title, style)

This function returns a string that contains the opening html tags for the report

:param title: The title of the report :param style: the name of the css file in the assets/themes folder :return: The open_html_file variable is being returned.

generate.parts.html.set_close_html_file()

This function closes the html file :return: The closing tags for the html file.

generate.parts.html.set_profile_of_picture(number, value)

It takes a number and a value and returns a string

:param number: the number of the picture :param value: The percentage of similarity between the two images :return: A string with the html code for the profile of the picture.

generate.parts.html.set_start_compare_zone(title)

This function creates the start of the compare zone

:param title: The title of the category :return: A string of HTML code that will be used to start a new compare zone.

generate.parts.html.set_wigdet_list_for_color_col(title, var1, var2, var3)

It takes three variables, a title, a color, and two percentages, and returns a string that contains a list item with a row that contains a column with the title, and a column with a row that contains three columns with the color, and the two percentages

:param title: The title of the widget :param var1: The color of the text :param var2: the percentage of the color in the image :param var3: The percentage of the color in the image :return: A string of HTML code that will be used to create a list of items.

generate.parts.html.set_wigdet_list_for_compare(title, var1)

This function takes in a title and a percentage and returns a list item with the title and the percentage in a tag

:param title: The title of the widget :param var1: The percentage of the first variable :return: A string of HTML code that will be used to create a list of widgets.

generate.parts.html.set_wigdet_list_for_compression(title, var1, var2, var3)

It takes in three variables, and returns a string that contains HTML code for a list item

:param title: The title of the widget :param var1: The percentage of the original size of the image :param var2: The percentage of the original size :param var3: The percentage of the original size of the image :return: A string of HTML code that will be used to create a list item for the compression widget.

generate.parts.html.set_comparison_slider(img1, img2, width, height)

It takes two images, and returns a slider that compares them

:param img1: the first image to compare :param img2: the image on the right :param width: width of the slider :param height: height of the slider :return: A string of HTML code that will be used to create a slider.

generate.parts.html.set_wigdet_for_structure_details(title, value)

This function takes in two arguments, a title and a value, and returns a string that contains a widget for the structure details page

:param title: The title of the parameter :param value: The value of the parameter :return: A string of HTML code that will be used to display the structure details.

generate.parts.html.set_structure_comparison_zone(image1, image2)

It takes two images as input and returns a string that contains the HTML code for the structure comparison zone

:param image1: The first image to compare :param image2: The second image to compare to the first :return: the structure comparison zone.

generate.parts.html.set_widget_for_image_details(title, value)

It takes in a title and a value and returns a widget for the image details

:param title: The title of the image detail :param value: The value of the tag :return: A string of HTML code that will be used to display the image details.

generate.parts.html.set_details_comparison_zone(image)

This function creates a comparison zone for the image details

:param image: The image to be analyzed :return: A string of HTML code that will be used to display the image details.

generate.parts.html.set_histogram_graphcss_graph(image)

Dernière mise à jour: 12 octobre 2022
Créé: 12 octobre 2022