2015-12-05 11:56 GMT+01:00 Ryan Michael <ryan.wiegh...@gmail.com>:
> I have a local EPS file called "niolin.eps" which I am trying to add to my
> markup. I think i need to add a bounding box for it for it to work, but am
> not sure how to do that.
>
> I exported the EPS file directly from Adobe Illustrator.
>
> Here is the lilypond error code:
>
>  Wrong type argument in position 1: #f
>
>
> Here is the actual markup snippet:
>
>  aih8\harmonic\glissando^\markup{
>     \epsfile #X #10 #"niolin.eps"
> }
>
>
> Any ideas on how to successfully add the EPS file?


Hi Ryan,

the LilyPond-syntax looks ok.

Thus, the problem is obviously in the eps-file or with LilyPond not
correctly recognizing the eps-file.
It's not unheard that some eps-files fail, maybe we can investigate it a little.

You could post your eps here or, if it's protected:

Please run the following code:

#(define (eps-info eps-file)
  (let* ((the-eps (ly:gulp-file eps-file)))
    ;; display complete file:
    ;(display-scheme-music the-eps)
    ;; display the bounding-box as a list, other wise #f
    (write-me
      "bounding-box "
      ((@@ (lily) get-postscript-bbox) (car (string-split the-eps #\nul))))))

#(eps-info "niolin.eps")

If it returns:
bounding-box #f
uncomment the line
(display-scheme-music the-eps)
und run it again and look, whether you can see anything like
"BoundingBox:" displayed.

Though, if you can't find anything I've no idea how you could add
reasonable values for BoundingBox.
Then I'd think you should use another tool. AFAIK GIMP never failed in
this regard.

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to