Skip to main content

SAP Commerce Cloud Backoffice icon converter

Simple Tool to create explorer tree icons for the SAP Commerce Backoffice interface from simple icon files.

Why is this needed?

screenshotBackoffice

The SAP Commerce Cloud Backoffice interface requires a special crafted sprite image to show it as icon in the explorer tree. This tool helps creating this sprites based on a simple icon file.

overview

How to use it?

The simplest case is to convert a single icon. For this you must have an input icon meeting the following criterias:

  • Size is 16x16 pixels (given by SAP Commerce)
  • Transparent background (otherwise it will not really work)
  • File format should be "png"

Run the following commands to create the sprite (replace the example icon with your own):

$ pip install sap-commerce-backoffice-icons
$ backofficeIconConverter exampleIcons/star.png
Process icon exampleIcons/star.png...
exampleIcons/star.png => exampleIcons/backoffice-star.png

That's it! Now you can use this icon sprite in your custom Backoffice extension as icon for your custom types. For more help on how to do this, see Tutorial.

You can also convert multiple icons:

$ backofficeIconConverter ~/FolderWithSomeIcons/* --output converted

Install development environment

To install the script for development or to run it directly from source, the following steps are needed:

git clone https://github.com/dev-jan/sap-commerce-backoffice-icons.git
cd sap-commerce-backoffice-icons
poetry install
  • Run the script via Poetry virtual env:
poetry run backofficeIconConverter exampleIcons/star.png

Metadata

Release files for sap-commerce-backoffice-icons 1.0.0

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

Source distribution (sdist)

Source distribution for sap-commerce-backoffice-icons 1.0.0
File Size Uploaded
sap_commerce_backoffice_icons-1.0.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sap-commerce-backoffice-icons 1.0.0
File Interpreter ABI Platform
sap_commerce_backoffice_icons-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / sap_commerce_backoffice_icons-1.0.0.tar.gz

Download URL sap_commerce_backoffice_icons-1.0.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a849def3aa6cc12f0c74ee4cd43aad6f348b77b0e6577869efeb601d93169dcf
BLAKE2b-256 checksum
How to use checksums
54152816eaeb6f6cba7cd4f8a60c11db7dac4ee67d02f5d4ceced0d52b026908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.10 Linux/5.11.0-46-generic

Release files / sap_commerce_backoffice_icons-1.0.0-py3-none-any.whl

Download URL sap_commerce_backoffice_icons-1.0.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aff38f0c3cb02e1ddf07ea91c14f689aabe4871645def39921f441a7bc3e77a9
BLAKE2b-256 checksum
How to use checksums
4d18f03e6ad2e29503c72a3e60e11a6f2bbdbc36146b24008d7f837455e63523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.10 Linux/5.11.0-46-generic

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

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