Using import root causes me to have to select an area twice.

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
TremorAcePV
Posts: 6
Joined: 2016-08-25T21:03:18-07:00
Authentication code: 1151

Using import root causes me to have to select an area twice.

Post by TremorAcePV »

TL;DR: I'm running the following command:

Code: Select all

import root <filename>.png
. The cursor changes to a cross and I select the area I wish to make an image of. The cursor switches from the cross to the pointer for a moment then back to the cross once I've selected the area. This forces me to select the area a second time. This creates two images (named <filename>-0.png and <filename>-1.png).

System & software information:
4.7.1-1 Arch Linux x86_64
awesome 3.5.9-1 - Tiling Window Manager
imagemagick 6.9.5.5-1 (pulled from the official Arch repos)
X.Org X Server 1.18.4
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.5.4-1-ARCH x86_64
Current version of pixman: 0.34.0

I'm running the command from rxvt-unicode 9.22-2 terminal emulator.

So essentially, it's having me select the area twice which creates two files. This isn't in a script. I've tried running it from dmenu (fast and lightweight dynamic menu for X) but same issue.
TremorAcePV
Posts: 6
Joined: 2016-08-25T21:03:18-07:00
Authentication code: 1151

Re: Using import root causes me to have to select an area twice.

Post by TremorAcePV »

Hmmm, bump?

Is this such a hard issue to fix? I'm not sure what could be causing it. Asking me to select an area to create an image twice is weird.
TremorAcePV
Posts: 6
Joined: 2016-08-25T21:03:18-07:00
Authentication code: 1151

Re: Using import root causes me to have to select an area twice.

Post by TremorAcePV »

Is this placed in the wrong section or something?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Using import root causes me to have to select an area twice.

Post by fmw42 »

Sorry, I cannot help. I do not use import nor am I on Linux. Are you clicking and releasing the first time and then clicking and releasing the second time. Or are you clicking, holding down and dragging to the to second point, then releasing.

I do not see any instructions about mouse actions at http://www.imagemagick.org/script/import.php

This probably needs to be answered by one of the developers or someone on your version of Linux experienced with import.
TremorAcePV
Posts: 6
Joined: 2016-08-25T21:03:18-07:00
Authentication code: 1151

Re: Using import root causes me to have to select an area twice.

Post by TremorAcePV »

I am clicking, selecting the area, then releasing. Then it switches back to the crosshair and I have to do it again. Pressing escape doesn't cancel the second image capture.

I don't either. I wonder if it's my windows manager that's doing it. Though I'm not sure why that'd be.

Thank you for the reply.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Using import root causes me to have to select an area twice.

Post by fmw42 »

Have you tried holding down the control or option/alt key while using the mouse?
TremorAcePV
Posts: 6
Joined: 2016-08-25T21:03:18-07:00
Authentication code: 1151

Re: Using import root causes me to have to select an area twice.

Post by TremorAcePV »

fmw42 wrote:Have you tried holding down the control or option/alt key while using the mouse?
Yes, after you mentioned it I tried each and both at the same time. It still has me capture an image twice.

Mind you, I don't need both captures and imagemagick is smart enough to name the first image with -0 at the end and the second with -1, so I get two images regardless and don't have to worry about which is the one I want.

It's just a weird issue and I'd rather it not do it. I'm running the command to capture using import from a script but running it from a terminal doesn't make a difference unfortunately.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Using import root causes me to have to select an area twice.

Post by fmw42 »

Have you tried calling import from the terminal directly without using the script?

Unfortunately, I do not know the solution or answer. My Mac X11 is limiting and I cannot test what you are doing. One of the IM developers on Linux might be able to check this out for you.
TremorAcePV
Posts: 6
Joined: 2016-08-25T21:03:18-07:00
Authentication code: 1151

Re: Using import root causes me to have to select an area twice.

Post by TremorAcePV »

fmw42 wrote:Have you tried calling import from the terminal directly without using the script?
TremorAcePV wrote:but running it from a terminal doesn't make a difference unfortunately.
Yeah, running it directly from the terminal without the script doesn't change it.
fmw42 wrote:One of the IM developers on Linux might be able to check this out for you.
Cool. Should I message them, make a new thread elsewhere or....?
Post Reply