ImageMagic import tool fails to capture a maximized browser - imagemagick

I am doing something quite simple:
import -window root foo.png
This is supposed to capture the entire desktop - and it does... after a fashion. In fact, it captures everything except:
no desktop background - it remains black
it is "blind" to a maximized chrome. Unmaximizing it brings the contents into the screenshot
it displays black border around windows, which does not exist.
I am on
CentOS Linux release 7.4.1708 (Core)
X.Org X Server 1.19.3
ImageMagick 6.7.8-9 2016-06-16 Q16
Standard Screenshot capture utility works correctly - I am trying to figure out if I can fix the import tool setup for our test runs.

Related

Cypress font-size difference in last decimals

I am running Cypress tests in Chrome, in Win10 and only in my environment, the font sizes are different in cypress in the last digits, like in the attached picture 1 than in Chrome.
My display settings:
100% scale
1920x1080 (Recommended) resolution
and landscape orientation
I tried to run when I used only my laptop's screen and also when I extended the desktop, but in every scenario, the same issue happened.
The following snippet results it:
element().should('have.css', 'font-size', '32px');
Do you have any idea what can produce it and how can I handle it?
Thanks
Use Electron instead of Chrome. That solved it for me.

Teechart's components of IE can't be showed normally

OS: Windows 7 64-bits
RAM: 8GB
teechart version: 8.0.0.8
There are teechart's components in two IE windows.
When switching between each other, some teechart's component of second IE window can't be showed normally.
The unnormal area of second IE window looks like residual image of first IE window.
Example(picture):
Unnormal area

Delphi TImageList bitmaps spontaneously convert themselves from color to black & white

I have an issue where the 16x16 bitmaps in an imagelist get corrupted and are displayed as monochrome black and white images. This tends to happen between sessions in the IDE, so that after saving the project to disk, exiting the IDE, and opening up the project once again, lo and behold the images have transformed! This requires rebuilding the imagelist and is very annoying. A before and after example image is attached.
This project is being developed (and shuttled between) WindowsXP and Windows 7 x64 using Delphi 4, which is installed on both operating systems. The problem occurs rarely in XP and frequently in Windows 7. Does anyone have a clue as to what is going on here?

Render highcharts on the server, but the images are not clear

I'm using the phantomjs + highcharts-convert.js solution to render the highcharts on a ubuntu server.
Bug the exported images are not clear,especially the labels, title.
Sample Image
And as you see, the backgroud is black
system info:
ubuntu 10.04 server 64bit
I have solved the problem.
The feeling of 'unclear' is the illusion caused by the dark ground(jpg) or invisible ground(png).
Exporting png images and putting it on a white background would fix this.

Problem changing icon in Delphi 2007

I've been working with a program someone else has made and I wanted to change the icon.
The icon I have is 256x256. I used http://converticon.com/ to create the icon (from a bmp I think). I used the icon in Inno Setup to create an installer and it worked fine
So I go to Options -> Application and attempt to load it. However, Delphi 2007 gives me an error 'The parameter is incorrect.' with this info: http://i.stack.imgur.com/vRCgs.png
When I do the same thing in Delphi XE, it works and loads the icon and changes it on compile. I can't use XE right now because the program uses a math parser that has a problem with unicode (thats something to fix for later haha)
So, what I did was open the project in XE, change the icon, save it, delete the dproj and open it in 2007. This works, compiles and displays the correct icon, but when I go to the project options, it gives me the same 'The parameter is incorrect' error.
The workaround isn't a big deal, but I shouldn't need to do it. Does anyone know why I can't change the icon in Delphi 2007?
Edit: I just used that same converticon site to convert the 256x256 icon to 192x192 and smaller and now it works perfectly. Thanks for the answers
The "icon" file is actually a collection of images, at different resolution and using different encodings. When I'm creating my icons I'm making sure they don't actually contain the 256x256 PNG-encoded version because development tools built before Windows Vista don't understand that. And that includes your Delphi 2007 and my Delphi 7. I also remove the alpha-encoded 256x256 icon because it simply makes the file needlessly large.
You've got two fixes possible:
Find an ICO editor and remove all of the larger formats until your Delphi accepts the icon. I personally never seen the 256x256 used in the real world, they'd take up huge amounts of space on user's Desktop or in Windows Explorer.
Use a dummy icon and replace the icon resource in the generated exe after Delphi is done with it. This way you can keep all of the larger image formats, including the 256x256 PNG image.
Edit to correct an error
If possible, always include the 256x256 image, Windows scales that down for everything above 64x64.
I always assumed Windows Explorer would show an image that's based on the closest matching image size available in the ICO. That is, if a 128x128 image is necessary, Windows would use the 128x128 image if available, or scale down the 256x256 image if that's available, or scale up the 96x96 image. Apparently that's not so. I've just made a test icon consisting of several image formats, including 32, 48, 72, 96, 128 and 256 consisting of simple blobs of color (using the flood-fill tool). In Windows Explorer I cycled throw the various Display Modes, and it became apparent that starting with "Large Icon" (and that's not very large) Windows will scale down the 256x256 icon, and if that's not available, use the 48x48 icon, unscaled! The result is truly ugly and unexpected. The 72x72, 96x96 and 128x128 icons were simply ignored.
Thank you David for pointing this out.
Older versions of Delphi don't support 256px Vista icons. I believe that 2010 does not support them so I guess the limitation was fixed in XE.
When working with an older Delphi you'll need to keep the 256px icon out of the IDE. You can still build an executable with a 256px icon from the command line compiler - I used to do just this before upgrading from Delphi 6. But to do this requires the use of a competent resource compiler, for example the Microsoft one.
2007 will let you select icons with a 256 pixel image. Here is what I tried:
The default icon for Delphi XE contains several image sizes, including a 256 pixel image.
If I extract the icon from a Delphi XE application using a resource editor, I can add that icon to a Delphi 2007 application using the IDE's project options. I don't get an error, and the icon images show as expected in Windows Vista/7 using Explorer at different sizes.
If I take the same icon that worked in Delphi 2007 and remove all of the image sizes other than the 256 pixel image using IcoFX, and try to select it again, then I get an error.
Try creating a .ico that includes other image sizes and see if that works for you.

Resources