mikera / clisk

The Clojure Image Synthesis Kit
281 stars 13 forks source link

show is distorting the image, sometimes #15

Closed rogerallen closed 8 years ago

rogerallen commented 8 years ago

I'm trying to render some "portrait" framed images and the display with show is distorting the Y values. Saving the images to a file renders fine, though. But, this makes it hard to interactively preview as you can imagine.

Here's a checkerboard testcase:

(let [im (image (scale 0.5 (checker 0 1))
                :width    (* (/ 1080 10) 3)
                :height   (* (/ 1920 10) 3))]
  (show im
        :width    (* (/ 1080 10) 3)
        :height   (* (/ 1920 10) 3))
  (ImageIO/write im "png" (File. "test.png")))

And this is a screen capture showing "show" on the left and an image viewer on the right.

screen shot 2015-12-02 at 5 46 52 pm

I'd expect they would match...also, I was hoping that I could just (show im) without the width/height settings, but that's less of an issue.

rogerallen commented 8 years ago

This appears to have been fixed in v0.11.0

Closing.