Page 1 of 1
problem with import
Posted: 2010-12-07T04:07:13-07:00
by porrier
Hello!
For years I used the follwing line to make a screenshot of parts of the screen:
import ~/shot-`date "+%Y-%m-%d_%H:%M:%S"`.jpg
Now I changed to an openSUSE 11.3 with import
Version: ImageMagick 6.6.1-0 2010-05-10 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
and get broken images. import x.jpg works but not the string above. What is wrong?
It must have something to do with the date part of the string.
Can somebody help?
Kind regards
Andreas
Re: problem with import
Posted: 2010-12-07T17:16:54-07:00
by anthony
What is that '-' looks like a UTF character to me!
The date is a separate command and should not be relevant.
The import command is working for me.
But you can also try...
convert x: image.jpg
It may be that you are using special X window handling Hmmm.. "compbiz" or something like that to do fancy high speed screen and window effects. This may not be readable from the X server import, and could be the cause of the problem.
I can't for example take X window snapshot of 'video' in a video player! Though the player itself can take snapshots of the video frame more directly (it doesn't snapshot the display but what it is displaying).
Re: problem with import
Posted: 2010-12-08T02:20:44-07:00
by porrier
anthony wrote:What is that '-' looks like a UTF character to me!
The date is a separate command and should not be relevant.
The import command is working for me.
But you can also try...
convert x: image.jpg
It may be that you are using special X window handling Hmmm.. "compbiz" or something like that to do fancy high speed screen and window effects. This may not be readable from the X server import, and could be the cause of the problem.
I can't for example take X window snapshot of 'video' in a video player! Though the player itself can take snapshots of the video frame more directly (it doesn't snapshot the display but what it is displaying).
You mean the '-' after 'shot'?
convert x: shot-`date "+%Y-%m-%d_%H:%M:%S"`.jpg
opens the image with ImageMagick on the screen but does not save it to disc.
what does the x: do?
compiz is not installed. I do not need this date-string really, just wondering why
it does not work with kde4.
Greetings
Andreas
Re: problem with import
Posted: 2010-12-08T02:54:14-07:00
by anthony
I meant the - before the "/shot"
An alturnative test of importing from your display without using ImageMagick is...
xwd | xwud
the first grabs the window (or whole screen if the window is root) as a xwd image, the second just displays it. If that doesn't work it would explain why IM can't import!
Re: problem with import
Posted: 2010-12-08T06:56:26-07:00
by porrier
anthony wrote:I meant the - before the "/shot"
An alturnative test of importing from your display without using ImageMagick is...
xwd | xwud
the first grabs the window (or whole screen if the window is root) as a xwd image, the second just displays it. If that doesn't work it would explain why IM can't import!
before the /shot that it is a ~
but the image is broken just with import shot-`date "+%Y-%m-%d_%H:%M:%S"`.gif nevertheless.
xwd | xwud works and grabs the window or the whole screen.
Greetings
Re: problem with import
Posted: 2010-12-08T08:11:39-07:00
by magick
Try this command:
- convert x: jpeg:shot-`date "+%Y-%m-%d_%H:%M:%S"`.jpg
Re: problem with import
Posted: 2010-12-08T12:55:38-07:00
by porrier
magick wrote:Try this command:
- convert x: jpeg:shot-`date "+%Y-%m-%d_%H:%M:%S"`.jpg
Yes, this works within windows or the desktop. Across windows, there is some
black space around them. A shot within firefox for example outputs a black image.
Greetings
Re: problem with import
Posted: 2010-12-08T18:00:31-07:00
by anthony
Then your X windows server is not prodiving the information requested for some reason. Probably due to the way GTK is handling its graphics.
Are you use some special graphics hardware. NVidia? ATI?
An alternative may be to create a 'nested' or virtual X window display, and grab from that. This would not depend on the hardware as they use a simpler special x windows driver for the virtualization process.
Re: problem with import
Posted: 2010-12-09T03:41:35-07:00
by porrier
anthony wrote:Then your X windows server is not prodiving the information requested for some reason. Probably due to the way GTK is handling its graphics.
Are you use some special graphics hardware. NVidia? ATI?
An alternative may be to create a 'nested' or virtual X window display, and grab from that. This would not depend on the hardware as they use a simpler special x windows driver for the virtualization process.
Two weeks ago I built in a ZOTAC GeForce 6200 A (NVIDIA GeForce 6200 GPU and 512 MB).
Probably since this time I have this problem. Before I used a ATI card with 128 MB.
But ok, I can live with that. If I get the time I put the old ATI card in again I make a testshot.
Thank you for your patience and help!
Greetings