0

I have a bunch of files with .bgra file extension. An example:

mediainfo -f  mpv/my_mpv_thumbnails/Digimon\ Frontier\ Folge\ 331_2_\ Die\ wahre\ Macht...360p_H.264-AAC-43348694/000100.bgra 
General
Count                                    : 347
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Complete name                            : mpv/my_mpv_thumbnails/Digimon Frontier Folge 331_2_ Die wahre Macht...360p_H.264-AAC-43348694/000100.bgra
Folder name                              : mpv/my_mpv_thumbnails/Digimon Frontier Folge 331_2_ Die wahre Macht...360p_H.264-AAC-43348694
File name extension                      : 000100.bgra
File name                                : 000100
File extension                           : bgra
File size                                : 120000
File size                                : 117 KiB
File size                                : 117 KiB
File size                                : 117 KiB
File size                                : 117 KiB
File size                                : 117.2 KiB
Stream size                              : 120000
Stream size                              : 117 KiB (100%)
Stream size                              : 117 KiB
Stream size                              : 117 KiB
Stream size                              : 117 KiB
Stream size                              : 117.2 KiB
Stream size                              : 117 KiB (100%)
Proportion of this stream                : 1.00000
File last modification date              : 2021-04-01 13:18:42 UTC
File last modification date (local)      : 2021-04-01 15:18:42

These are all thumbnails that were generated from this mpv-thumbnail-script.

Sadly the display command does not work

display -size 32x24 -depth 8 mpv/my_mpv_thumbnails/FFXIII-2\ Sazh\ DLC\ Heads\ or\ Tails\ FULL\ playthrough\ 720p-743938096/000100.bgra 
display-im6.q16: unexpected end-of-file `mpv/my_mpv_thumbnails/FFXIII-2 Sazh DLC Heads or Tails FULL playthrough 720p-743938096/000100.bgra': No such file or directory @ error/bgr.c/ReadBGRImage/246

I hope this was correct this way. (yes the file exists)

1
  • Try this: xnview Commented Jan 13, 2025 at 22:07

1 Answer 1

0

ImageMagick is able to create and view .bgra files.

  1. Install ImageMagick with sudo apt install imagemagick

  2. Use ImageMagick to create a .bgra file from input.png (your original input file).

    convert input.png -depth 8 rgba:output.bgra  
    

    The output.bgra that is created by the above command will not have its original thumbnail image, however it can still be viewed in ImageMagick. Since bgra is a RAW image format the output bgra file was much larger than the input png file, input.png, which was almost 10 times larger than a similar jpg file to begin with.

  3. View the .bgra file in ImageMagick: k display -size WidthxHeight -depth 8 bgra:output.bgra

    Replace WidthxHeight with the dimensions of the original input.png image. Please create and save a text file with the dimensions of the original input.png file as a backup in case you delete the original input.png file.

2
  • note that OP indicates they have bgra files and want to view it, not convert PNG to bgra. Just making sure you keep the answer narrow enough ;) Commented Jan 14, 2025 at 2:01
  • 1
    Unfortunately I don't have a link to download a .bgra extension file, so meanwhile I made a large high resolution .bgra file by converting a ,png image file that I had, and it looks quite good. Commented Jan 14, 2025 at 2:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.