https://kotlinlang.org logo
Join Slack
Powered by
# scrimage
  • s

    sam

    10/12/2020, 3:14 PM
    set the channel description: https://sksamuel.github.io/scrimage/
  • s

    sam

    10/13/2020, 1:41 AM
    New documentation site, only took 7 years šŸ˜‚
  • s

    sam

    10/13/2020, 1:41 AM
    https://sksamuel.github.io/scrimage/
  • p

    Peter Fortuin

    11/12/2020, 2:44 PM
    Hello, I’m in the process of searching for a library to do image manipulation and Scrimage looks interesting. But one thing that I couldn’t find in the documentation is working with text or other drawing functions. Is there something available in the library for that? Or maybe you have some suggestions?
  • s

    sam

    11/12/2020, 2:45 PM
    There are some thin wrappers around the g2 drawing utilities in the Canvas class
  • s

    sam

    11/12/2020, 2:45 PM
    something like image.toCanvas().draw() and you can follow the source from that
    šŸ¤— 1
  • p

    Peter Fortuin

    11/12/2020, 2:50 PM
    That looks interesting. I’m going to try that. Thank you for the response.
  • s

    sam

    11/12/2020, 2:53 PM
    no problem, any more questions let me know
  • c

    CRamsan

    02/13/2022, 5:56 AM
    Hello, quick question. I am looking at the documentation to rotate and I see that when specifying the degrees, the rotated image goes out of the bound original image size: https://sksamuel.github.io/scrimage/rotate/
  • c

    CRamsan

    02/13/2022, 5:57 AM
    I assume this could be solved by adding padding and then rotating the image. But is there an option to do this internally in the library? I want to make sure I am not missing preexisting functionality.
  • s

    sam

    02/13/2022, 6:02 AM
    rotate will always maintain the original canvas, so you need to enlarge first
  • c

    CRamsan

    02/13/2022, 6:08 AM
    Cool, thanks šŸ‘
  • c

    CRamsan

    02/13/2022, 6:08 AM
    I will do that
  • r

    Roach

    08/09/2023, 12:10 AM
    What do I do to compress an image typed ā€œimage/webpā€? Is there any options?
    s
    • 2
    • 2