converting svg to png with black background

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

not sure if this is the right mailing list, I'm trying to convert svg to png (which is working), I just need to get the background black.

Here's my scm script:

(define (svg-to-raster infile
                       outfile
                       resolution
                       xmax
                       ymax)
  (let* ((image (car (file-svg-load
                      RUN-NONINTERACTIVE
                      infile
                      ""
                      resolution
                      (- 0 xmax)
                      (- 0 ymax)
                      0
                      )
                     )
                )
         (drawable (car (gimp-image-get-active-layer image)))
)
    (plug-in-autocrop RUN-NONINTERACTIVE image drawable)
    (gimp-file-save RUN-NONINTERACTIVE image drawable outfile outfile)
    (gimp-image-delete image)
    )
  )


I want a non-antialiased png with black background as the final result, currently background is transparent.
See attached for my original svg image. It's converting fine from shell (other than black background) via:

gimp -i -b '( svg-to-raster "special_areas.svg" "special_areas.png" 72 0 0)' -b '(gimp-quit 0)'


thanks
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list





[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux