Welcome to the Tools App! This application provides a suite of useful tools for image processing, file conversion, URL shortening, and QR code generation.
The Tools App includes the following features:
- Image Compressor: Compresses images by adjusting their quality.
- Image Enhancer: Upscales image resolution based on a scale factor.
- QR Code Generator: Generates QR codes from text.
- URL Shortener: Shortens long URLs to manageable short links.
- File Converter: Converts various file types to different formats, including:
- Image to PDF
- DOCX to TXT
- JSON to TXT
- Image to Text Converter: Converts images to text using OCR.
- Speedtest: Measures the speed of your internet connection.
- Unit Converter: Converts between different units of measurement.
- Image Compressor: Upload an image, select the compression quality, and download the compressed image.
- Image Enhancer: Upload an image, choose a scale factor to increase its resolution, and download the enhanced image.
- QR Code Generator: Enter text to generate a QR code, view it, and download the QR code image.
- URL Shortener: Shorten long URLs and get a short link that redirects to the original URL.
- File Converter: Convert images to PDFs, DOCX files to text, and JSON files to text.
- Image to Text Converter: Upload an image and receive the extracted text.
- Speedtest: Measure your internet connection's download and upload speeds.
- Unit Converter: Convert between units like length, weight, and temperature.
- Endpoint:
/api/qr_code
- Method:
POST
- Request: JSON payload with
text
field. - Response: JSON containing the base64-encoded QR code image.
-
Endpoint:
/api/shorten
-
Method:
POST
-
Request: JSON payload with
long_url
field. -
Response: JSON containing the
short_url
. -
Endpoint:
/api/expand/<short_url>
-
Method:
GET
-
Response: JSON containing the
long_url
or error message.
- Endpoint:
/api/image_compressor
- Method:
POST
- Request: Form data with
image
file andquality
parameter. - Response: Compressed image in JPEG format.
- Endpoint:
/api/image_upscaler
- Method:
POST
- Request: Form data with
image
file andscale
factor. - Response: Upscaled image in JPEG format.
- Endpoint:
/api/convert_file
- Method:
POST
- Request: Form data with
file
,file_type
, andoutput_format
. - Response: Converted file (PDF or TXT) based on input and output format.
- Endpoint:
/api/image_to_text
- Method:
POST
- Request: Form data with
image
file. - Response: JSON containing the extracted text.
- Endpoint:
/api/speedtest
- Method:
GET
- Response: JSON containing download and upload speeds.
- Endpoint:
/api/unit_converter
- Method:
POST
- Request: JSON payload with
value
,from_unit
, andto_unit
fields. - Response: JSON containing the converted value.
POST /api/qr_code
Parameter | Type | Description |
---|---|---|
text |
string |
Required. Text to generate QR code |
POST /api/shorten
Parameter | Type | Description |
---|---|---|
long_url |
string |
Required. Long URL to shorten |
GET /api/expand/<short_url>
Parameter | Type | Description |
---|---|---|
short_url |
string |
Required. Short URL to expand |
POST /api/image_compressor
Parameter | Type | Description |
---|---|---|
image |
file |
Required. Image file to compress |
quality |
integer |
Optional. Compression quality (10-90) |
POST /api/image_upscaler
Parameter | Type | Description |
---|---|---|
image |
file |
Required. Image file to upscale |
scale |
float |
Optional. Scale factor for resizing (e.g., 2 for 2x) |
POST /api/convert_file
Parameter | Type | Description |
---|---|---|
file |
file |
Required. File to convert |
file_type |
string |
Required. Type of the file to convert (image , docx , json ) |
output_format |
string |
Required. Desired output format (pdf or txt ) |
POST /api/image_to_text
Parameter | Type | Description |
---|---|---|
image |
file |
Required. Image file to extract text from |
GET /api/speedtest
Parameter | Type | Description |
---|---|---|
None |
None |
Returns download and upload speeds |
POST /api/unit_converter
Parameter | Type | Description |
---|---|---|
value |
float |
Required. Value to convert |
from_unit |
string |
Required. Unit of the value being converted |
to_unit |
string |
Required. Unit to convert to |
You can try out the app by visiting the following URLs:
- Image Compressor
- Image Enhancer
- QR Code Generator
- URL Shortener
- File Converter
- Image to Text Converter
- Speedtest
- Unit Converter
-
Clone the repository:
git clone https://github.com/harshilchovatiya/tools-app.git cd tools-app
-
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt
-
Initialize the database:
python app.py
-
Run the application:
python app.py
-
Open your browser and go to
http://localhost:5000
to use the app.
For any inquiries or issues, please contact:
- Email: [email protected]
- LinkedIn: Harshil Chovatiya
Thank you for using the Tools App. Enjoy exploring and utilizing the various tools!