Skip to main content

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.

  1. 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.

  2. 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".

      API_Key_Screenshot.png

    • 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.

  1. Basic Command:

    ebay_pictures_tool
    

    This will execute the tool with its default settings.

  2. 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
    
  • -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
    
  • -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
    
  • -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
    
  • -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
    
  • -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 as isnet-general-use, but retains smaller parts in the pictures, such as screws or other minor details.
    ebay_pictures_tool -m model_name
    

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

Metadata

Release files for ebay_pictures_tool 0.0.95

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ebay_pictures_tool 0.0.95
File Size Uploaded
ebay_pictures_tool-0.0.95.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ebay_pictures_tool 0.0.95
File Interpreter ABI Platform
ebay_pictures_tool-0.0.95-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / ebay_pictures_tool-0.0.95.tar.gz

Download URL ebay_pictures_tool-0.0.95.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ae97692e19275e46c7a89301acecee6b1379366f2dd14b940e26201a6c6acc28
BLAKE2b-256 checksum
How to use checksums
1af90788dd8986043b341407d88097f898a1065c48213b55f4a1d39377d1c2cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release files / ebay_pictures_tool-0.0.95-py3-none-any.whl

Download URL ebay_pictures_tool-0.0.95-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c202a6dd664b36082762295284a0ced62d5f2bed62ef8a4aa60c71b32b6e4348
BLAKE2b-256 checksum
How to use checksums
e15dfa45fbd5f040be9e9e42b2ac782cfdd4a54a244411fcd34c350265c788f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

Release history Release notifications | RSS feed

This release

0.0.95 This release

2 release files

0.0.94

2 release files

0.0.80

2 release files

0.0.77

2 release files

0.0.76

2 release files

0.0.74

2 release files

0.0.73

2 release files

0.0.72

2 release files

0.0.71

2 release files

0.0.70

2 release files

0.0.69

2 release files

0.0.68

2 release files

0.0.67

2 release files

0.0.66

2 release files

0.0.65

2 release files

0.0.64

2 release files

0.0.63

2 release files

0.0.61

2 release files

0.0.60

2 release files

0.0.59

2 release files

0.0.58

2 release files

0.0.56

2 release files

0.0.55

2 release files

0.0.54

2 release files

0.0.53

2 release files

0.0.52

2 release files

0.0.51

2 release files

0.0.50

2 release files

0.0.49

2 release files

0.0.48

2 release files

0.0.47

2 release files

0.0.46

2 release files

0.0.45

2 release files

0.0.44

2 release files

0.0.43

2 release files

0.0.42

2 release files

0.0.41

2 release files

0.0.40

2 release files

0.0.39

2 release files

0.0.38

2 release files

0.0.37

2 release files

0.0.36

2 release files

0.0.35

2 release files

0.0.34

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.31

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page