Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • $\begingroup$ the Fitting option in ImageCollage resizes the rectangles. Is there any way to fix this? $\endgroup$ Commented Sep 29, 2021 at 22:14
  • $\begingroup$ Neither "Fit", "Fill" or "Stretch" work $\endgroup$ Commented Sep 29, 2021 at 22:17
  • $\begingroup$ images = ConstantImage[Nest[Lighter, Red, 2], #] & /@ Join[ConstantArray[#, 5], ConstantArray[#2, 4], ConstantArray[#3, 5]] & @@ {{400, 450}, {300, 400}, {680, 390}}; Show[ImageCollage[images, "Fit", {2438, 1219}, Method -> "ClosestPacking", Background -> Nest[Lighter, Blue, 2], ImagePadding -> 5], Axes -> True] $\endgroup$ Commented Sep 29, 2021 at 22:17
  • $\begingroup$ For example, if I change above to ConstantArray[#3, 50], it resiozes the rectangles to fit, rather than keep original dimensions $\endgroup$ Commented Sep 29, 2021 at 22:18
  • $\begingroup$ Of course I can manually check, but was aiming at not doing that $\endgroup$ Commented Sep 29, 2021 at 22:24