[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem adding \epsfile to markup
From: |
Thomas Morley |
Subject: |
Re: problem adding \epsfile to markup |
Date: |
Sat, 5 Dec 2015 12:48:50 +0100 |
2015-12-05 11:56 GMT+01:00 Ryan Michael <address@hidden>:
> 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
- problem adding \epsfile to markup, Ryan Michael, 2015/12/05
- Re: problem adding \epsfile to markup, Pierre Perol-Schneider, 2015/12/05
- Re: problem adding \epsfile to markup, Simon Albrecht, 2015/12/05
- Re: problem adding \epsfile to markup,
Thomas Morley <=
- Re: problem adding \epsfile to markup, David Kastrup, 2015/12/05
- Re: problem adding \epsfile to markup, Ryan Michael, 2015/12/05
- Re: problem adding \epsfile to markup, David Kastrup, 2015/12/05
- Re: problem adding \epsfile to markup, Pierre Perol-Schneider, 2015/12/05
- Re: problem adding \epsfile to markup, Thomas Morley, 2015/12/05
- Re: problem adding \epsfile to markup, Pierre Perol-Schneider, 2015/12/12
- Re: problem adding \epsfile to markup, Thomas Morley, 2015/12/12