An efficient tool for processing ebay images.
Project description
eBay Pictures Tool
The eBay Pictures Tool is a purpose-built application designed to streamline the image processing workflow for eBay listings. With the added functionality to integrate with the Odoo ERP system, users can seamlessly handle images for their listings.
Features
- Image Processing: Specifically tailored for eBay listings to ensure images fit eBay's recommended standards.
- Odoo Integration: Offers an option to automatically upload processed images directly to your Odoo instance.
- User-friendly Interface:Simple and intuitive setup and processing steps.
Installation
Prerequisites
The tool requires macOS Monterey or newer. If you're using an older version of macOS, the tool might not function as intended.
-
Installation Command:
Open a terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/cbusillo/ebay_pictures_tool/main/installer.sh)"
This command will download and execute the installation script from our GitHub repository. This installation might take some time, so please be patient. During the process, you might be prompted to enter your user password.
Note: If the installation script indicates that the required developer tools are missing with an error message like:
xcode-select: note: no developer tools were found at `Applications/Xcode.app`, requesting install.
A dialog will prompt you to install the necessary tools. Click "Install" and once the installation is complete, you can continue with the eBay Pictures Tool installation.
Important: After the installation is complete, please log out of your macOS user account and log back in to ensure that all features of the eBay Pictures Tool operate correctly.
-
Odoo Configuration:
Once the eBay Pictures Tool is installed, it will execute and set up the environment. For integration with Odoo, configure the
secret.json
file located at~/.shiny/secret.json
:-
Password: To create an API Key, navigate to your Odoo instance, click your profile name at the top right, go to the "Account Security" tab, and select "NEW API KEY".
-
Username: Typically your Odoo username, which is often your email address.
-
Database Name: Activate the developer mode in Odoo. Once it's active, the database name is displayed near your username at the top right.
-
URL: The base URL for your Odoo instance (e.g., "http://shop.yourdomain.com").
Your configuration should resemble:
{ "odoo_url": "Website URL", "odoo_db": "Database Name", "odoo_username": "info@blah.com", "odoo_password": "PASSWORD" }
-
Usage Guide
To use the ebay_pictures_tool
, you can run it directly from the terminal. The tool accepts various arguments to customize its
behavior, as detailed below.
-
Basic Command:
ebay_pictures_tool
This will execute the tool with its default settings.
-
Arguments:
-
-s
or--sd_card_path
: Path to your SD card.- Default:
/Volumes/EOS_DIGITAL
(or~/Desktop/Input
if in testing mode)
ebay_pictures_tool -s /path/to/sd/card
- Default:
-
-o
or--output_path
: Path to the directory where you want to save the processed images.- Default:
~/Desktop/eBay Pics
ebay_pictures_tool -o /path/to/output/directory
- Default:
-
-t
or--trimmed_output_path
: Path to the directory where trimmed images will be saved.- Default:
~/Desktop/eBay Pics/Trimmed
ebay_pictures_tool -t /path/to/trimmed/output/directory
- Default:
-
-n
or--nb_output_path
: Path to the directory where images without a background will be saved.- Default:
~/Desktop/eBay Pics/NB
ebay_pictures_tool -n /path/to/no/background/output/directory
- Default:
-
-b
or--background_color
: Sets the background color for trimmed images in (R,G,B) format.- Default:
255,255,255
ebay_pictures_tool -b 255,255,255
- Default:
-
-m
or--model_name
: Model name to use for background removal.- Default:
isnet-general-use
isnet-general-use
: This model is optimal for cleanly cutting out the primary object, but it will remove everything except the main subject.u2net
: This model doesn't cut as cleanly asisnet-general-use
, but retains smaller parts in the pictures, such as screws or other minor details.
ebay_pictures_tool -m model_name
- Default:
You can combine multiple arguments in one command. For example, if you want to specify both the SD card path and the output directory, you can run:
ebay_pictures_tool -s /path/to/sd/card -o /path/to/output/directory
For a complete list of options and their descriptions, you can run:
ebay_pictures_tool --help
Troubleshooting
Run the script a second time if it fails the first time. It may be intermittent connectivity issues. Make sure to log out after a successful installation.
Contributing and Feedback
Encountered any issues, have feature requests, or any other feedback? Please open an issue on our GitHub repository.
License
No idea
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ebay_pictures_tool-0.0.95.tar.gz
.
File metadata
- Download URL: ebay_pictures_tool-0.0.95.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae97692e19275e46c7a89301acecee6b1379366f2dd14b940e26201a6c6acc28 |
|
MD5 | 6147a32559eb04896abec63b6caf4f92 |
|
BLAKE2b-256 | 1af90788dd8986043b341407d88097f898a1065c48213b55f4a1d39377d1c2cc |
File details
Details for the file ebay_pictures_tool-0.0.95-py3-none-any.whl
.
File metadata
- Download URL: ebay_pictures_tool-0.0.95-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c202a6dd664b36082762295284a0ced62d5f2bed62ef8a4aa60c71b32b6e4348 |
|
MD5 | d0796f035bc5dcd273fbff183fdafdfa |
|
BLAKE2b-256 | e15dfa45fbd5f040be9e9e42b2ac782cfdd4a54a244411fcd34c350265c788f0 |