[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PNG size issue
From: |
Mats Bengtsson |
Subject: |
Re: PNG size issue |
Date: |
Mon, 29 Jan 2007 09:16:10 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20061206) |
What operating system do you use?
When I tried it here, I got a 595x842px PNG file directly.
Regarding black/white, isn't it just to avoid using setting the color
property in your
LilyPond files? ;-)
Otherwise, I recommend you to search in the documentation for Ghostscript or
any graphics processing program such as convert on Linux.
/Mats
lala lala wrote:
Hi all !
I have a problem with a png file generated with lilypond. Here is my
lily file :
\version "2.10.6"
#(ly:set-option 'point-and-click #f)
\header {
title = "toto"
}
\paper {
#(set-paper-size "a4")
}
melody = \relative c' {
\clef treble
\key c \major
\time 4/4
a4 b c d
}
\score {
\new Staff \melody
\layout { }
}
}
I run : lilypond --verbose --png -dresolution=72 --pdf test.ly
As paper-size is A4 and resolution is 72dpi the resulting png must be
595 x 842 px BUT it's 612 x 792 px (that is an US-letter with the same
resolution ..)
On a multipage sheet, I got several png with the good size.
More weird : if I check lily output I see that lily call :
gs -dEPSCrop -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dNOPAUSE
-sDEVICE=png16m -sOutputFile="test.png" -r72 "test.ps" -c quit
When I executed this line after running lilypond my PNG is overwritted
by a PNG with the good size !
Is it a bug ? Or do I miss something ?
PS : by the way, is there a way to specify that I want only black and
white PNG ??
------------------------------------------------------------------------
Essayez Live.com, votre nouvelle page d'accueil ! Personnalisez-la en
quelques clics pour retrouver tout ce qui vous intéresse au même
endroit. au même endroit. <http://www.live.com/getstarted>
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================
- PNG size issue, lala lala, 2007/01/28
- Re: PNG size issue,
Mats Bengtsson <=