Menu

White (or color) image to rmdoc

Anonymous
2024-10-17
2024-10-25
  • Anonymous

    Anonymous - 2024-10-17

    Hi!

    First, I'd like to express my heartfelt thanks to the creator of Drawj2d for this fantastic tool that has truly opened up new horizons for me with my reMarkable Paper Pro . Thanks to this program, I've been able to add images to my notebooks and create really cool custom covers. It's a real asset for my daily use of the RMPP!

    However, I have a question regarding image conversion. I've noticed that all the images I convert to rmdoc format appear in black. I would like to be able to convert transparent PNG files in white, or even with their original colors, so that I can overlay them on color templates that I've created.

    Is there an option or method to preserve colors or choose a specific color (like white) when converting PNG or SVG images to rmdoc?

     
    • A. Vontobel

      A. Vontobel - 2024-10-20

      Thanks, your welcome. I often work with old scanned drawings. These are always black lines on white background. This is the main reason I implemented an algorithm to convert raster images to a rM line representation. It's also the reason I did not care much about colours (it would have been grey only next to black and white at that rM2 time anyway).

      Is there an option or method to preserve colors or choose a specific color (like white) when converting PNG or SVG images to rmdoc?

      When converting PNG images there will only be one colour. Default is black but for the output type rmdoc you can set the colour (you cannot see this in the preview -Tscreen);

      pen blue
      image sketch.png
      

      If the image is an svg file just embedding a raster image it will work the same way. Also you can set pen white. The page will appear empty on the device but you can select the white image and put it on a dark background (use layers).

      When converting SVG drawings the vector traces can contain colours and these should appear in the resulting rmdoc, provided the colours match exactly the supported colours. Any different colour (even close ones) will turn in black/gray or white. Thus use the exact red-green-blue (rgb) values for the colours when you create the svg.

      image sketch.svg
      
      Pen colours:
      • black, grey or white
      • blue 0000ff (hex representation) or r=0 g=0 b=255 (equivalent decimal representation)
      • red ff0000
      • green 00ff00
      • yellow ffff00
      • cyan 00ffff
      • magenta ff00ff

      The highlighter colours currently are (experimental)

      • pink ffafaf
      • lightgreen a9fa5c (experimental, might change)
      • lightyellow fefd60 experimental, might change)
       
  • Anonymous

    Anonymous - 2024-10-21

    Awesome! That's exactly what I was looking for. I will work with png as the svg conversion doesn't seem to handle the fill parameter.
    Thank you!

     
    😄
    1

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.