Subject: Forum activity on: brand new to inkscape extensions - how to get selected bitmap
From: [email-masked]
To: [email-masked]
Date: Tue, 30 Jul 2024 08:59:38 -0000

Dear cosmobird,

A new post on the topic "brand new to inkscape extensions - how to get selected bitmap" by inklinea:
---
Style refers to css style properties.To set the height and width you would either need to set the height and width attributes or apply a transform.When adjusting the size of objects in an svg, normally you have to take account of preexising transforms on the object, or any of its parent groups.You also have to be aware of the units ( mm, inches, pixels ) of the document.For the simple example you asked for.****If we assume that the document is in inches and there are no transforms on the object or its parent layer (or if the object is in the document root).selection_list = self.svg.selected        if len(selection_list) < 1:            inkex.errormsg('Please select at least one image')            return            for selection in selection_list:    selection.set('width', 2)    selection.set('height', 4)    or better:Filter for images in the selection first:selection_list = self.svg.selected.filter(inkex.elements._image.Image)or in the processing loop:if selection.TAG == 'image':    etc
----
Link: http://www.inkscape.org/forums/extensions/brand-new-to-inkscape-extensions-how-to-get-selected-bitmap/#c73442

All the best,
 Inkscape.org Website

~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscribe:

If you do no longer want to receive these messages, you can edit your subscriptions and notification settings at http://www.inkscape.org/alerts/settings/.