Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-25 Thread Joshua Nichols
Hi David,

I'll look into GraphicsMagick.

Thanks!

--
Josh

On Sat, Jun 23, 2018 at 12:22 AM, David Wright 
wrote:

> On Fri 22 Jun 2018 at 13:15:36 (-0400), Joshua Nichols wrote:
> > I think you miss it because the functionality is within Frescobaldi
> itself.
> > It's run in the preview, and it allows me to customize aliasing,
> > resolution, etc, and it captures to png, as Ben pointed out.
> >
> > Any form of screen capture would be insufficient.
>
> Yes, I see what you're doing now. The "scrot" method is what I would
> use to produce the image that Ben posted, whereas you are lacking the
> functionality illustrated within that image: ie capture of the blue
> rectangle.
>
> > Frescobaldi also allows you to automatically crop the image to the
> > boundaries of the music, which is primarily why I use it.
>
> Would this imply that you normally capture the entire music, surrounded
> by white margins? Is it unsuitable to run LP so that it produces a
> PNG file (rather than PDF) with   --png -dresolution=1200
> (or whatever value is appropriate)?
>
> Programs like GraphicsMagick can crop a PNG image; GM's terminology
> for cropping in this manner is "trim", ie "removes any edges that are
> exactly the same color as the corner pixels."
>
> Aside: I don't know what your workflow is, but with PNG files (which
> are rasters) you have to worry about resolution, whereas with a PDF
> file workflow, the images are vectors and remain sharp regardless of
> the magnification. There are programs like pdfcrop that crop/trim
> PDFs in the same manner.
>
> Cheers,
> David.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-23 Thread Noeck
Thank you for telling me about this awesome function!

It works here (Ubuntu, Frescobaldi 3.0.0). I hope you get it back somehow.

Cheers,
Joram

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-23 Thread Andrew Bernard
Hi Karlin,

Have submitted an issue on the Github repo. Thanks.

There's 291 outstanding issues presently. Perhaps I should hop in and start
debugging some Python.

Andrew


On 23 June 2018 at 12:49, Karlin High  wrote:

> On Fri, Jun 22, 2018 at 9:35 PM, Andrew Bernard
>  wrote:
> > I am never sure where to report Frescobaldi bugs. Can somebody let me
> know?
>
> Good chance it's the GitHub issues page for the project. Subject to
> correction by anyone more closely involved with Frescobaldi
> development.
>
> 
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread David Wright
On Fri 22 Jun 2018 at 13:15:36 (-0400), Joshua Nichols wrote:
> I think you miss it because the functionality is within Frescobaldi itself.
> It's run in the preview, and it allows me to customize aliasing,
> resolution, etc, and it captures to png, as Ben pointed out.
> 
> Any form of screen capture would be insufficient.

Yes, I see what you're doing now. The "scrot" method is what I would
use to produce the image that Ben posted, whereas you are lacking the
functionality illustrated within that image: ie capture of the blue
rectangle.

> Frescobaldi also allows you to automatically crop the image to the
> boundaries of the music, which is primarily why I use it.

Would this imply that you normally capture the entire music, surrounded
by white margins? Is it unsuitable to run LP so that it produces a
PNG file (rather than PDF) with   --png -dresolution=1200
(or whatever value is appropriate)?

Programs like GraphicsMagick can crop a PNG image; GM's terminology
for cropping in this manner is "trim", ie "removes any edges that are
exactly the same color as the corner pixels."

Aside: I don't know what your workflow is, but with PNG files (which
are rasters) you have to worry about resolution, whereas with a PDF
file workflow, the images are vectors and remain sharp regardless of
the magnification. There are programs like pdfcrop that crop/trim
PDFs in the same manner.

Cheers,
David.

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Karlin High
On Fri, Jun 22, 2018 at 9:35 PM, Andrew Bernard
 wrote:
> I am never sure where to report Frescobaldi bugs. Can somebody let me know?

Good chance it's the GitHub issues page for the project. Subject to
correction by anyone more closely involved with Frescobaldi
development.


-- 
Karlin High
Missouri, USA

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Andrew Bernard
Hi Joshua,

Hold on! I just tried again to check, and now the error occurs for me also.

Traceback (most recent call last):

File
"/Applications/Frescobaldi.app/Contents/Resources/lib/python3.5/frescobaldi_app/musicview/__init__.py",
line 312, in copyImage

File
"/Applications/Frescobaldi.app/Contents/Resources/lib/python3.5/frescobaldi_app/copy2image.py",
line 57, in copy_image

File
"/Applications/Frescobaldi.app/Contents/Resources/lib/python3.5/frescobaldi_app/copy2image.py",
line 108, in __init__

File
"/Applications/Frescobaldi.app/Contents/Resources/lib/python3.5/frescobaldi_app/copy2image.py",
line 150, in readSettings

TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 67

Therefore I would say this is a bug in Frescobaldi.

I am never sure where to report Frescobaldi bugs. Can somebody let me know?


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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Andrew Bernard
Hi Joshua,

New install of F. this morning, 2.20.0 on OSX 10.3.5. Works fine. Image
capture no problem.

While this does not solve your issue, it does form evidence that it works
just fine. This install was from the DMG image provided on the release page.


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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Andrew Bernard
Hi Joshua,

I am running this up now for you on my Mac at 10.13.5. From whence did you
obtain Frescobaldi?

If mac ports, a lot has changed, as the version of Darwin underneath OSX
has changed considerably - new major rev. number. You would need to
reinstall it from a clean beginning.

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Ben

On 6/22/2018 2:04 PM, Joshua Nichols wrote:
I know how to work around, that's what I've been doing. I'm trying to 
regain functionality because I'm working through hundreds of examples 
and to crop and custom size every single one of these is going to be a 
big task (3x the work).


Do you have any advice otherwise? How can I get my hands on 3.0? Or 
what about a different reinstall process?


On Fri, Jun 22, 2018, 13:36 Ben > wrote:


On 6/22/2018 1:16 PM, Joshua Nichols wrote:

Ben, this is exactly what I'm talking about. Using the auto-crop
feature is so useful when including pictures in scholarly works,
etc. That's actually what I was working on before it crashed.

> I think the system-style approach should work as a workaround
like you said, yes.

​I don't follow.​


--
Josh

On Fri, Jun 22, 2018 at 1:05 PM, Ben mailto:soundsfromso...@gmail.com>> wrote:

On 6/22/2018 12:42 PM, David Wright wrote:

On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:

I have tried to install 3.0 but I cannot self-compile from the source 
(I am
not capable of doing that). I also have very limited resources to 
install
from a place like MacPorts.

Have any other ideas?

I'm not sure what you mean by "PNG capture", whether it's PNG
generation from LP using --png, or screen capture using the
Mac equivalent of scrot, or something else entirely (I don't
use Fresco).

Would the scrot-style approach be a suitable workaround?
(I don't know whether MacOS is sufficiently unix-like to
actually run scrot.)

Cheers,
David.




I'm not an OSX person, but isn't there a feature where you can
just take a screenshot of the display from within the system
itself? I'd be surprised if that didn't exist. (think: printscreen
/

https://www.itg.ias.edu/content/keyboard-shortcuts-capture-screen-shot-mac-os-x
)

Once you had that screenshot, you could at least use a software to
crop, annotate, etc. - as a workaround right?

i..e on Windows, Irfanview, Greenshot, etc.



I'm very sorry you're stuck in this position with your OSX system. All I 
can suggest is to maybe try resetting your preferences in Frescobaldi 
and see if that works.

(ala https://github.com/wbsoft/frescobaldi/issues/814)

Might get lucky.

Otherwise, if you're really stuck, maybe creating a virtualbox Linux 
install would be best to get these screenshots to work. If you truly 
need the built-in Frescobaldi function, and time is crucial to this 
project, I don't know what else would be beneficial in the short term.


Hope that helps.


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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Joshua Nichols
I know how to work around, that's what I've been doing. I'm trying to
regain functionality because I'm working through hundreds of examples and
to crop and custom size every single one of these is going to be a big task
(3x the work).

Do you have any advice otherwise? How can I get my hands on 3.0? Or what
about a different reinstall process?

On Fri, Jun 22, 2018, 13:36 Ben  wrote:

> On 6/22/2018 1:16 PM, Joshua Nichols wrote:
>
> Ben, this is exactly what I'm talking about. Using the auto-crop feature
> is so useful when including pictures in scholarly works, etc. That's
> actually what I was working on before it crashed.
>
> > I think the system-style approach should work as a workaround like you
> said, yes.
>
> ​I don't follow.​
>
>
> --
> Josh
>
> On Fri, Jun 22, 2018 at 1:05 PM, Ben  wrote:
>
>> On 6/22/2018 12:42 PM, David Wright wrote:
>>
>> On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:
>>
>> I have tried to install 3.0 but I cannot self-compile from the source (I am
>> not capable of doing that). I also have very limited resources to install
>> from a place like MacPorts.
>>
>> Have any other ideas?
>>
>> I'm not sure what you mean by "PNG capture", whether it's PNG
>> generation from LP using --png, or screen capture using the
>> Mac equivalent of scrot, or something else entirely (I don't
>> use Fresco).
>>
>> Would the scrot-style approach be a suitable workaround?
>> (I don't know whether MacOS is sufficiently unix-like to
>> actually run scrot.)
>>
>> Cheers,
>> David.
>>
>>
>>
> I'm not an OSX person, but isn't there a feature where you can just take a
> screenshot of the display from within the system itself? I'd be surprised
> if that didn't exist. (think: printscreen /
> https://www.itg.ias.edu/content/keyboard-shortcuts-capture-screen-shot-mac-os-x
> )
>
> Once you had that screenshot, you could at least use a software to crop,
> annotate, etc. - as a workaround right?
>
> i..e on Windows, Irfanview, Greenshot, etc.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Br. Samuel Springuel

On 6/22/18 12:42 PM, David Wright wrote:

Would the scrot-style approach be a suitable workaround?
(I don't know whether MacOS is sufficiently unix-like to
actually run scrot.)


The MacOS equivalent would be Grab.  You can find it in the Utilities 
folder of your applications and it allows you to take capture the full 
screen, particular windows, or a rectangular selection.  It saves to 
tiff format, but that can be converted to png with Preview (or a whole 
host of other image manipulation programs).


--
✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Ben

On 6/22/2018 1:16 PM, Joshua Nichols wrote:
Ben, this is exactly what I'm talking about. Using the auto-crop 
feature is so useful when including pictures in scholarly works, etc. 
That's actually what I was working on before it crashed.


> I think the system-style approach should work as a workaround like 
you said, yes.


​I don't follow.​


--
Josh

On Fri, Jun 22, 2018 at 1:05 PM, Ben > wrote:


On 6/22/2018 12:42 PM, David Wright wrote:

On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:

I have tried to install 3.0 but I cannot self-compile from the source (I am
not capable of doing that). I also have very limited resources to install
from a place like MacPorts.

Have any other ideas?

I'm not sure what you mean by "PNG capture", whether it's PNG
generation from LP using --png, or screen capture using the
Mac equivalent of scrot, or something else entirely (I don't
use Fresco).

Would the scrot-style approach be a suitable workaround?
(I don't know whether MacOS is sufficiently unix-like to
actually run scrot.)

Cheers,
David.




I'm not an OSX person, but isn't there a feature where you can just take 
a screenshot of the display from within the system itself? I'd be 
surprised if that didn't exist. (think: printscreen / 
https://www.itg.ias.edu/content/keyboard-shortcuts-capture-screen-shot-mac-os-x 
)


Once you had that screenshot, you could at least use a software to crop, 
annotate, etc. - as a workaround right?


i..e on Windows, Irfanview, Greenshot, etc.

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Joshua Nichols
Ben, this is exactly what I'm talking about. Using the auto-crop feature is
so useful when including pictures in scholarly works, etc. That's actually
what I was working on before it crashed.

> I think the system-style approach should work as a workaround like you
said, yes.

​I don't follow.​


--
Josh

On Fri, Jun 22, 2018 at 1:05 PM, Ben  wrote:

> On 6/22/2018 12:42 PM, David Wright wrote:
>
> On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:
>
> I have tried to install 3.0 but I cannot self-compile from the source (I am
> not capable of doing that). I also have very limited resources to install
> from a place like MacPorts.
>
> Have any other ideas?
>
> I'm not sure what you mean by "PNG capture", whether it's PNG
> generation from LP using --png, or screen capture using the
> Mac equivalent of scrot, or something else entirely (I don't
> use Fresco).
>
> Would the scrot-style approach be a suitable workaround?
> (I don't know whether MacOS is sufficiently unix-like to
> actually run scrot.)
>
> Cheers,
> David.
>
>
> David,
>
> I thought he was talking about the function within Frescobaldi, which is
> just a simple right click drag type screenshot:
> (see attached)
>
> I think the system-style approach should work as a workaround like you
> said, yes.
>
> Thanks!
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Joshua Nichols
I think you miss it because the functionality is within Frescobaldi itself.
It's run in the preview, and it allows me to customize aliasing,
resolution, etc, and it captures to png, as Ben pointed out.

Any form of screen capture would be insufficient.

Frescobaldi also allows you to automatically crop the image to the
boundaries of the music, which is primarily why I use it.

--
Josh

On Fri, Jun 22, 2018 at 12:42 PM, David Wright 
wrote:

> On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:
> > I have tried to install 3.0 but I cannot self-compile from the source (I
> am
> > not capable of doing that). I also have very limited resources to install
> > from a place like MacPorts.
> >
> > Have any other ideas?
>
> I'm not sure what you mean by "PNG capture", whether it's PNG
> generation from LP using --png, or screen capture using the
> Mac equivalent of scrot, or something else entirely (I don't
> use Fresco).
>
> Would the scrot-style approach be a suitable workaround?
> (I don't know whether MacOS is sufficiently unix-like to
> actually run scrot.)
>
> Cheers,
> David.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread Ben

On 6/22/2018 12:42 PM, David Wright wrote:

On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:

I have tried to install 3.0 but I cannot self-compile from the source (I am
not capable of doing that). I also have very limited resources to install
from a place like MacPorts.

Have any other ideas?

I'm not sure what you mean by "PNG capture", whether it's PNG
generation from LP using --png, or screen capture using the
Mac equivalent of scrot, or something else entirely (I don't
use Fresco).

Would the scrot-style approach be a suitable workaround?
(I don't know whether MacOS is sufficiently unix-like to
actually run scrot.)

Cheers,
David.


David,

I thought he was talking about the function within Frescobaldi, which is 
just a simple right click drag type screenshot:

(see attached)

I think the system-style approach should work as a workaround like you 
said, yes.


Thanks!


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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-22 Thread David Wright
On Fri 22 Jun 2018 at 11:38:35 (-0400), Joshua Nichols wrote:
> I have tried to install 3.0 but I cannot self-compile from the source (I am
> not capable of doing that). I also have very limited resources to install
> from a place like MacPorts.
> 
> Have any other ideas?

I'm not sure what you mean by "PNG capture", whether it's PNG
generation from LP using --png, or screen capture using the
Mac equivalent of scrot, or something else entirely (I don't
use Fresco).

Would the scrot-style approach be a suitable workaround?
(I don't know whether MacOS is sufficiently unix-like to
actually run scrot.)

Cheers,
David.

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-21 Thread Ben

On 6/21/2018 12:38 PM, Br. Samuel Springuel wrote:
Frescobaldi 3 does not have a Mac installer package.  Only those who 
are capable of building from source can use v3.0 on a Mac.


Correct. But perhaps v3.0 would solve the PNG problem was my aim. 
Figured it was worth a shot.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-21 Thread Br. Samuel Springuel
Frescobaldi 3 does not have a Mac installer package.  Only those who are 
capable of building from source can use v3.0 on a Mac.

--
✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-21 Thread Ben

On 6/21/2018 11:36 AM, Joshua Nichols wrote:

The most current version: Frescobaldi 2.20.0

--
Josh



Message: 3
Date: Wed, 20 Jun 2018 09:36:05 +1000
From: Andrew Bernard mailto:andrew.bern...@gmail.com>>
To: lilypond-user Mailinglist mailto:lilypond-user@gnu.org>>
    Subject: Re: Cannot PNG capture with Frescobaldi macOS 10.13.5
Message-ID:
       
mailto:cak5qfnwb9ql986h63uugepht%2b123lpgpjhdi%2be54dcq5ldz...@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"

Apologies - your subject has the Mac OS version. Missed that in my
haste.

What version of Frescobaldi?

Andrew
-- next part --
An HTML attachment was scrubbed...
URL:

<http://lists.gnu.org/archive/html/lilypond-user/attachments/20180620/7b2ecb9d/attachment.html

<http://lists.gnu.org/archive/html/lilypond-user/attachments/20180620/7b2ecb9d/attachment.html>>




The most current stable concurrently is also v3.0 - have you tried that? 
Maybe that could help...?

(I'm not on OSX)

https://github.com/wbsoft/frescobaldi/releases

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-19 Thread Andrew Bernard
Apologies - your subject has the Mac OS version. Missed that in my haste.

What version of Frescobaldi?

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


Re: Cannot PNG capture with Frescobaldi macOS 10.13.5

2018-06-19 Thread Andrew Bernard
HI Joshua,

As per normal, it would be most helpful if you provide version information
for the operating system and Frescobaldi, and any other Pythons you have
that may be involved. Otherwise it's a bit hard for people to help and/or
replicate.

Andrew


On 20 June 2018 at 00:30, Joshua Nichols  wrote:

> I have tried to use the PNG capture feature in the viewer on Frescobaldi
> and it will no longer work. It was working literally one moment before. Any
> ideas what to do? I did a fresh install of Frescobaldi before pasting the
> error below.
>
> Traceback (most recent call last):
>> File "/Applications/Frescobaldi.app/Contents/Resources/lib/
>> python3.5/frescobaldi_app/musicview/__init__.py", line 312, in copyImage
>> File "/Applications/Frescobaldi.app/Contents/Resources/lib/
>> python3.5/frescobaldi_app/copy2image.py", line 57, in copy_image
>> File "/Applications/Frescobaldi.app/Contents/Resources/lib/
>> python3.5/frescobaldi_app/copy2image.py", line 108, in __init__
>> File "/Applications/Frescobaldi.app/Contents/Resources/lib/
>> python3.5/frescobaldi_app/copy2image.py", line 150, in readSettings
>> TypeError: unable to convert a QVariant of type 10 to a QMetaType of type
>> 67
>
>
> Any ideas? Thanks!
>
> --
> Josh
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user