Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support img tags in HTML label text (Request in QGIS) #9279

Open
qgis-bot opened this issue Sep 28, 2024 · 0 comments
Open

Support img tags in HTML label text (Request in QGIS) #9279

qgis-bot opened this issue Sep 28, 2024 · 0 comments

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#58716
Author: @nyalldawson
QGIS version: 3.40

Support img tags in HTML label text

PR Description:

Allows use of img tags in HTML label content. The following logic is applied:

  • Image path is set via the src="xxx" attribute. Local, HTTP, and base64 encoded paths are permitted
  • Any image format readable by QGIS can be used
  • Image sizes can be specified via the width="##" and height="##" attributes. If width or height is not specified it will automatically be calculated from the original image size
  • If width or height are specified, they are considered to be in POINTS
  • The css width/height settings are NOT respected (this is a Qt limitation)
  • Images are not supported for curved text labels
  • Images are placed inline only, floating images are not supported

Sponsored by City of Freiburg im Breisgau

Commits tagged with [need-docs] or [FEATURE]

"[feature] Support img tags in HTML label text\n\nAllows use of img tags in HTML label content. The following logic\nis applied:\n\n- Image path is set via the src="xxx" attribute. Local, HTTP, and\nbase64 encoded paths are permitted\n- Any image format readable by QGIS can be used\n- Image sizes can be specified via the width="##" and height="##"\nattributes. If width or height is not specified it will automatically\nbe calculated from the original image size\n- If width or height are specified, they are considered to be\nin POINTS\n- The css width/height settings are NOT respected (this is a Qt\nlimitation)\n- Images are not supported for curved text labels\n- Images are placed inline only, floating images are not supported\n\nSponsored by City of Freiburg im Breisgau"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant