A browser extension that converts SVG files into a format compatible with Canvas Apps.
Power Apps SVG Converter is a simple and intuitive browser extension designed to help PowerApps developers easily convert SVG images for use in Canvas Apps. The extension converts SVG code to the data:image/svg+xml format with proper encoding, making it ready to use in PowerApps Image controls.
- Upload SVG Files: Select SVG files directly from your computer
- Paste SVG Code: Paste SVG code directly into the extension
- Live Preview: See a real-time preview of your SVG before conversion
- One-Click Conversion: Automatically converts SVG to PowerApps-compatible format
- Copy: Easily copy the converted code with a single click to use in a image control
- Copy YAML: Easily copy the converted code to a direct Image control
- Dark Mode Support: Automatically adapts to your system's dark mode preference
- Clean Output: Removes unnecessary attributes that might cause issues in PowerApps
-
Clone or download this repository
git clone https://github.com/arijsdijk/powerapps-svg-converter-extension.git
-
Open your browser's extension management page:
- Microsoft Edge: Navigate to
edge://extensions/ - Google Chrome: Navigate to
chrome://extensions/
- Microsoft Edge: Navigate to
-
Enable Developer mode (toggle in the top right corner)
-
Click Load unpacked and select the cloned repository folder
-
The extension icon should now appear in your browser toolbar
- Click on the extension icon in your browser toolbar
- Make sure the "Upload SVG" tab is selected
- Click "Choose File" and select an SVG file from your computer
- The preview and converted code will appear automatically
- Click "Copy to Clipboard" to copy the PowerApps-compatible code, or click "Copy YAML" to copy in YAML format
- Click on the extension icon in your browser toolbar
- Switch to the "Paste SVG" tab
- Paste your SVG code into the text area
- The preview and converted code will appear automatically
- Click "Copy to Clipboard" to copy the PowerApps-compatible code, or click "Copy YAML" to copy in YAML format
After copying the converted SVG code, you can use it in PowerApps by:
Option 1: Direct Copy
- Add an Image control to your Canvas App
- Set the
Imageproperty to the copied code - The SVG will render in your PowerApps application
Example output format:
"data:image/svg+xml;utf8, "&EncodeUrl("<svg>...</svg>")
Option 2: YAML Import (Copy YAML)
- Copy the YAML format from the extension
- In PowerApps Studio, paste the YAML code to import the Image control with the SVG
- The Image control will be created automatically with the SVG already configured
Example YAML format:
- Image:
Control: [email protected]
Properties:
Image: |-
="data:image/svg+xml;utf8, "&EncodeUrl("<svg>...</svg>")
X: =40
Y: =40If you encounter any issues or have questions about the extension, you can reach out through the following channels:
- GitHub Issues: Open an issue for bug reports or feature requests
- Email: [email protected]
- LinkedIn: Arjan Rijsdijk
We welcome your feedback and suggestions! Here's how you can contribute:
- Feature Requests: Have an idea to improve the extension? Open an issue with the label "enhancement"
- Bug Reports: Found a bug? Report it here with steps to reproduce
- General Questions: Feel free to reach out via email or LinkedIn for general inquiries
Contributions are welcome! If you'd like to contribute to this project:
- Fork the repository
- Create a feature branch (
git checkout -b feature/your-feature) - Commit your changes (
git commit -m 'Add your feature') - Push to the branch (
git push origin feature/your-feature) - Open a Pull Request
This project is open source. See the repository for license details.
Current version: 1.0.0
For more information about your privacy click here