Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Tags
    3. image object
    Log in to post

    • eduairet

      SOLVED QRCodeGenerator(size, message)
      General Discussion • image object • • eduairet  

      10
      0
      Votes
      10
      Posts
      49
      Views

      frederik

      hehe, totally forgot about that one... but I prefer the solution with pyqrcode as it provides a list 0/1
    • imik

      UNSOLVED Context leak detected — some help?
      Code snippets • image object • • imik  

      4
      0
      Votes
      4
      Posts
      30
      Views

      frederik

      try to do saveImage outside the loop with the option multiPage set to True. saveImage(f"~/Desktop/test/issueContextLeak/RotatingImage.png", multipage=True) Somehow your image object got lost in between saveImage actions... see saveImage options: https://www.drawbot.com/content/canvas/saveImage.html#drawBot.saveImage
    • dyb

      SOLVED How to get image DPI?
      General Discussion • image object resolution • • dyb  

      2
      0
      Votes
      2
      Posts
      1013
      Views

      frederik

      good question in drawBot there is not a api for this. I could consider imageResoltion(path) returning the dpi opening an issue: https://github.com/typemytype/drawbot/issues/215
    • jo

      SOLVED setPixelColor() image Object?
      General Discussion • image object • • jo  

      2
      0
      Votes
      2
      Posts
      841
      Views

      frederik

      not directly... you can load the image as an ImageObject and use it as a context to draw something, a pixel at a specific place. im = ImageObject("http://f.cl.ly/items/1T3x1y372J371p0v1F2Z/drawBot.jpg") with im: fill(1, 0, 1) rect(0, 0, 10, 10) image(im, (10, 10))
    • erik

      SOLVED image Object should have imagePixelColor method
      Feature Requests • image image object pixel color • • erik  

      3
      0
      Votes
      3
      Posts
      1455
      Views

      justvanrossum

      You can pass an ImageObject to imagePixelColor(): im = ImageObject() with im: fill(1, 0, 0) rect(100, 100, 200, 200) print(imagePixelColor(im, (150, 140)))