Package: ebay_pictures_tool
eBay Pictures ToolThe 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.FeaturesImage 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.InstallationPrerequisitesThe 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-fsSLhttps://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
thesecret.jsonfile 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 GuideTo use theebay_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_toolThis will execute the tool with its default settings.Arguments:-sor--sd_card_path: Path to your SD card.Default:/Volumes/EOS_DIGITAL(or~/Desktop/Inputif in testing mode)ebay_pictures_tool -s /path/to/sd/card-oor--output_path: Path to the directory where you want to save the processed images.Default:~/Desktop/eBay Picsebay_pictures_tool -o /path/to/output/directory-tor--trimmed_output_path: Path to the directory where trimmed images will be saved.Default:~/Desktop/eBay Pics/Trimmedebay_pictures_tool -t /path/to/trimmed/output/directory-nor--nb_output_path: Path to the directory where images without a background will be saved.Default:~/Desktop/eBay Pics/NBebay_pictures_tool -n /path/to/no/background/output/directory-bor--background_color: Sets the background color for trimmed images in (R,G,B) format.Default:255,255,255ebay_pictures_tool -b 255,255,255-mor--model_name: Model name to use for background removal.Default:isnet-general-useisnet-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_nameYou 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/directoryFor a complete list of options and their descriptions, you can run:ebay_pictures_tool --helpTroubleshootingRun 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 FeedbackEncountered any issues, have feature requests, or any other feedback? Please open an issue on
ourGitHub repository.LicenseNo idea