hyperpixel4 icon indicating copy to clipboard operation
hyperpixel4 copied to clipboard

Raspistill images rotated

Open mspeculatrix opened this issue 4 years ago • 1 comments

I'm using the (recently bought) HP4 on an RPi 4/8GB with a fresh install of Raspberry Pi OS (32-bit). Also mounted on the Pi is the RPi high-quality camera.

I'm using the screen in landscape mode, and so used 'hyperpixel4-rotate left' which has set up the screen and touch fine and all seems to be working okay.

Except that when I snap a pic with raspistill, the preview image is rotated - ie, it's on its side (as it would have been if I hadn't used the rotate command). It's like it doesn't know what the screen's rotated.

Using -rot with the raspistill command doesn't solve the issue, it simply takes a portrait format image instead of a landscape one.

Any ideas?

mspeculatrix avatar Jun 12 '21 10:06 mspeculatrix

I guess this happens because raspistill draws directly into the framebuffer, ignoring the rotated, composited desktop produced by X. It's not something I can fix. And it's not really even a "bug" per se- since raspistill probably doesn't know or care what the desktop environment is doing. I guess you'd need to raise a feature request over at https://github.com/raspberrypi/userland/issues

Gadgetoid avatar Jun 16 '21 15:06 Gadgetoid