Module my_autopylot.converters39
Functions
def convert__image_png_to_jpg(input_filepath='', output_folder='', output_filename='')
-
Convert the image from png to jpg
Args: input_image_path (str): The path of the input image output_folder_path (str): The path of the output folder
Returns: [bool]: Whether the function is successful or failed.
def convert_csv_to_excel(input_file='', sep=',', output_folder='', output_filename='', contains_headers=True)
-
Args
input_file
:str
- [description]. Defaults to "".
sep
:str
- [description]. Defaults to "".
output_folder
:str
, optional- [description]. Defaults to "".
output_filename
:str
, optional- [description]. Defaults to "".
contains_header (bool,optional):[description]. Defaults to True
Returns
[bool]
- [status]
def convert_image_jpg_to_png(input_filepath='', output_folder='', output_filename='')
-
Convert the image from jpg to png
Args: input_image_path (str): The path of the input image output_folder_path (str): The path of the output folder
Returns: [bool]: Whether the function is successful or failed.
def convert_image_to_base64(input_file='')
-
Description
Convert image to base64 string.
Args
input_file
:str
, optional- [description]. Defaults to "".
Returns
[bool]
- [status]
def excel_change_corrupt_xls_to_xlsx(input_file='', input_sheetname='', output_folder='', output_filename='')
-
Repair corrupt file to regular file and then convert it to xlsx. status : Done.
def excel_convert_xls_to_xlsx(input_file='', output_folder='', output_filename='')
-
Converts given XLS file to XLSX
def excel_to_colored_html(input_filepath='', output_folder='', output_filename='')
-
Converts given Excel to HTML preserving the Excel format and saves in same folder as .html
def get_image_from_base64(input_text='', output_folder='', output_filename='')
-
Description
Convert base64 string to image.
Args
imgFileName
:str
, optional- [description]. Defaults to "".
input_file
:str
, optional- [description]. Defaults to "".
output_folder
:str
, optional- [description]. Defaults to "".
Returns
[bool]
- [status]