<BackPath> images do not scale or tile to the effective size of a widget, only to the base size

Bug #1399245 reported by jus
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

  <BackPath scalemode="STRETCH">backdrop.svg</BackPath>
    <ConfigKey><Variable name="group"/>,<Variable name="control"/></ConfigKey>

In my example, knob.svg & backdrop.svg both have a base size of 30x30.
knob.svg is scaled as foreground image to 40x40. backdrop.svg as background image should scale as well to 40x40, but instead sits lonely in the corner.

Workaround is to make the backdrop.svg the same size as the actual <KnobComposed> widget size (40x40). This removes the flexibility the tiling/stretching <BackPath> promise to offer.

PS. Scaling works fine with <BackPath> of <WidgetGroup>. Probably other widgets supporting <BackPath> are affected (untested).

See recent conversation: https://github.com/mixxxdj/mixxx/commit/a1de569348b4f91eb28c079bb07164a81eb800bf
Commit history: https://github.com/mixxxdj/mixxx/commits/master/src/widget/wknobcomposed.cpp

jus (jus)
description: updated
description: updated
description: updated
RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: none → 1.12.0
assignee: nobody → RJ Ryan (rryan)
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :
RJ Skerry-Ryan (rryan)
Changed in mixxx:
importance: Undecided → Medium
Revision history for this message
ronso0 (ronso0) wrote :

Found this old bug while I was struggling to resize EQ Knobs in my remix of LateNight to 34x34px.
Initial sizes were: Knob 40x40px, Backpath 50x42.5px
Resizing or cropping the Backpath.svg with Inkscape while keeping the original aspect ratio always resulted in offset or squeezing, scalemode setting didn't have any effect.
Saving as Inkscape SVG or plain SVG didn't matter either.
What DID work was to manually delete the viewBox="0 0 X Y" line from the BackPath.svg.
I don't know which app wrote this attribute, Inkscape doesn't when I edit/save the corrected files.
Hope this helps.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Due to lack of progress, marking Triaged and clearing assignee. Feel free to revert if it is in fact still in progress :).

Changed in mixxx:
status: In Progress → Triaged
assignee: RJ Skerry-Ryan (rryan) → nobody
milestone: 2.0.0 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers