Make a Bitmap Copy cuts off parts of object.

Bug #168385 reported by Tavmjong
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

The Make a Bitmap Copy command uses the bounding box of the objects to be
copied. This cuts off the objects edges in the case that a Gaussian Blur
filter is applied or if the Join style is set to 'miter' and the angle
between the two connecting lines is small (bounding box calculation assumes
a 'round' join style).

Tested with 0.45+svn.

Revision history for this message
Prokoudine (prokoudine) wrote :

Originator: NO

Confirmed on 16423

Revision history for this message
pbhj (pbhj) wrote :

Originator: NO

Same problem on 2007-11-02 (win32 7z build).

My note on this:

I've managed to create a bitmap copy that clipped off the corners (of a
star). When the "mitre join" option is set for stroke then the stroke lines
exceed the bounding box ("bb"). I imagine this may relate (or be useful to
attack) with the gaussian blur bounding problems reported. Round join
touches the bb; bevel join becomes inset to the bb - which may also cause
problems, perhaps with aligning objects?

pbhj

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

The same issue affects bitmap export as png.
Creating a transparent box larger than the object (to force its final size as export bounds) is a workaround, but it's not handy when you want to export multiple objects simultaneously.

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

This is already fixed. The bbox scales now to fit stroke and gaussian blur widths.

Changed in inkscape:
status: Confirmed → Fix Released
su_v (suv-lp)
tags: added: stroke ui-selection-group-layer
Revision history for this message
su_v (suv-lp) wrote :

reproduced with Inkscape 0.46+devel r22498 on OS X 10.5.8

re-opening: the second issue "When the "mitre join" option is set for stroke then the stroke lines exceed the bounding box ("bb")." comment #2 is still present.

I propose to separate the two (unrelated) issues:
bug #204820 visual bbox should include blur
bug #168385 visual bbox should include sharp corners of stroke (miter join)

Changed in inkscape:
status: Fix Released → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

related bug reports:

Bug #166659 in Inkscape: “Bounding box does not include long miters”:
<https://bugs.launchpad.net/inkscape/+bug/166659>
Bug #186182 in Inkscape: “Bounding box too small in EPS export”:
<https://bugs.launchpad.net/inkscape/+bug/186182>

Revision history for this message
su_v (suv-lp) wrote :

marking as duplicate of Bug #166659 in Inkscape: “Bounding box does not include long miters”: <https://bugs.launchpad.net/inkscape/+bug/166659>. If you don't agree please add a comment and revert the duplicate status.

Revision history for this message
su_v (suv-lp) wrote :

Unlinking as duplicate, since bug still persists (tested with r10313) even though it has been fixed for bitmap export and page resize.

'Edit > Bitmap copy' should probably use 'RENDERING_BBOX' too (slower, but includes all stroke widths):
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/selection-chemistry.cpp#L2668>

Revision history for this message
su_v (suv-lp) wrote :

Duplicate status of #166659 reverted because of recently filed bug #799291 (long miters are still cut off in bitmap copies in current trunk).

su_v (suv-lp)
tags: added: selection
removed: ui-selection-group-layer
su_v (suv-lp)
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Closing as part of Inkscape's Bug migration because I'm unable to replicate the issue on current master, neither with stars, sharp corners, blurs, or very weird transforms. In some cases with miter join, the bounding box was even larger than the shape, which in turn causes problems with align & distribute.

Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.