I'd like to label a pie chart with images, ideally resized to fit inside the sectors. The problem is I can't seem to control the size of the imported images. Here's an MWE with no attempt at resizing, pie chart image size of 1000;
a = Import["strawman.png"];
a2 = RemoveBackground[a];
b = Import["cherry.png"];
b2 = RemoveBackground[b];
c = Import["burden.png"];
c2 = RemoveBackground[c];
d = Import["gradhat.png"];
d2 = RemoveBackground[d];
PieChart[{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, SectorOrigin -> {Automatic, 2},
ChartLabels -> {a2, b2, "blank", c2, "blank2", d2}, ImageSize -> 1000]
This results in an image like this;
I initially thought I could just resize these images, but the problem is that simply reduces the quality and not the size- it seems ImageSize is overwriting everything. For example, if I try and make the scarecrow resized to 50 pixels with
a2 = ImageResize[a2,50]
all this does is severely pix-elate the scarecrow element as below, with no impact on size:
Is there a clever way around this? I've tried Inset and Epilog and had no obvious joy with them either.
Magnify
, e.g.,Magnify[a2,.2]
? $\endgroup$