import command screen shot

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jgeis
Posts: 2
Joined: 2017-01-13T05:43:40-07:00
Authentication code: 1151

import command screen shot

Post by jgeis » 2019-07-10T07:34:37-07:00

I am using Linux CentOS 7.6 and doing and import -silent -window root command. It "seems" like I get random screen shots. How can that be??
adding the -debug all

/usr/bin/import -debug all -silent -window root screen.png 2019-07-10T09:33:40-05:00 0:00.000 0.000u 6.7.8 Configure import[26939]: utility.c/ExpandFilenames/939/Configure
Command line: /usr/bin/import {-debug} {all} {-silent} {-window} {root} {screen.png}
2019-07-10T09:33:40-05:00 0:00.100 0.090u 6.7.8 Resource import[26939]: resource.c/AcquireMagickResource/262/Resource
Area: 16.59MB/16.59MB/3.6975GB
2019-07-10T09:33:40-05:00 0:00.100 0.090u 6.7.8 Resource import[26939]: resource.c/AcquireMagickResource/262/Resource
Memory: 16.59MB/15.82MiB/1.7218GiB
2019-07-10T09:33:40-05:00 0:00.100 0.090u 6.7.8 Cache import[26939]: cache.c/OpenPixelCache/4052/Cache
open [0] (heap memory, 1920x1080 15.82MiB)
2019-07-10T09:33:40-05:00 0:00.440 0.350u 6.7.8 Resource import[26939]: resource.c/AcquireMagickResource/262/Resource
Area: 16.59MB/16.59MB/3.6975GB
2019-07-10T09:33:40-05:00 0:00.440 0.350u 6.7.8 Resource import[26939]: resource.c/AcquireMagickResource/262/Resource
Memory: 16.59MB/31.64MiB/1.7218GiB
2019-07-10T09:33:40-05:00 0:00.440 0.350u 6.7.8 Cache import[26939]: cache.c/OpenPixelCache/4052/Cache
open [0] (heap memory, 1920x1080 15.82MiB)
2019-07-10T09:33:41-05:00 0:00.690 0.620u 6.7.8 Cache import[26939]: cache.c/DestroyPixelCache/1448/Cache
destroy [0]
2019-07-10T09:33:41-05:00 0:00.700 0.640u 6.7.8 Resource import[26939]: resource.c/RelinquishMagickResource/811/Resource
Memory: 16.59MB/15.82MiB/1.7218GiB
2019-07-10T09:33:41-05:00 0:00.760 0.660u 6.7.8 Resource import[26939]: resource.c/AcquireMagickResource/262/Resource


Its talking about cache.c - How can I remove any cache before taking the screen shot ? Or how can this be happening ?
THanks,

Jerry

Post Reply