Hi, but sorry be patient because I'm a C*T
please I would like a batch that for all types of image sources (no video) try to convert it into .BMP 24 bit and TGA 32 bit in case of alpha channel is detected inside the source.
How can I do? thanks
+ Reply to Thread
Results 1 to 16 of 16
-
-
Hi,
1. Do you really need targa, or is tiff enough.
2. You can sort your images by bit depth in explorer.
Then use sorting by bit depth. And conversion to desired format for example in irfanview or in Faststone viewer (should be free for non commercial)
But I believe tiff is better. Or even PNG is good enough to keep alpha channel. BMP seems to me bit obsolete, but if is it your choice
PNG is also lossless format and with reasonable space saving. BMP is big file and simply obsolete. If there is software using bmp for input and not png it is not good. And for archiving is the choice obvious.
Edit: 24bit = 8bit and 32bit = 8bit + alpha channel. There can be image with 16bit per channel or even more, but it is not widely supported.
BernixLast edited by Bernix; 6th Nov 2017 at 17:59.
-
Just tested on png 8bpc + alpha. Size of png 180kB size of BMP over 60 000 kB. But of course both are 32 bit at the end.
But problem with bmp with alpha channel is not everything handle alpha channel correctly, just for clarification, I know, you don't want them keep alpha channel.
Edit: Just for my curiosity, how do you store 32bit picture now?
Edit2: And noticed tga doesn't show bit depth in explorer. Situation PNG 27kB, TGA 2552kB,Tif 84kB. And tif is able to hold 16 bits per channel.
Different software supports different lossless compression. Here is test. TGA is with RLE compression really small, but is limited in terms of bit depth.
Here is small picture just 8bit per channel + alpha channel PNG TGA and TIF
BernixLast edited by Bernix; 6th Nov 2017 at 18:45. Reason: Edit
-
I need to convert in batch mode a lot of jpg pcx png tif and other image-formats into BMP. Not important TGA also because the alpha channel is not integrated in my sources.
I try to understand what is the way to automate this processing in a batch -
oops - once again reading thread realized not video but image to image.
ffmpeg support some image formats so it can be used for image conversion, also specialized image processing software such as ImageMagick can be used for batch processing.
https://www.imagemagick.org/script/command-line-processing.php
Code:@for %%a in (*.gif, *.png, *.jpg, *.tif) do (@magick "%%a" image.png "%%~na_.png")
Last edited by pandy; 7th Nov 2017 at 07:44.
-
Just for record.
There is one picture format using x265 or JCTVC encoder. It supports lossless, transparency, chroma subsampling from 4:2:0 to 4:4:4, bit depth 8-14, 5 types of color spaces. But it is not good for "printing" in fact it is not true in fact see printing size and ppi, just to save or for backup. So picture I posted is 333x458px 300x300 ppi with printing size 2,819x3,878 cm. But when you use this format of picture, you get picture 333x458px 72x72px ppi but printing size is 11,747x16,157 cm which is in ratio 300/72.
The example picture I posted is in lossless method chroma subsampling 4:4:4 with size 9,39 kB.
Any compression set to higher value reduce filesize significantly. In fact in most cases is it visually lossless at much higher value.
But there is problem with this format. More about it here
Xnview or Honeyview supports viewing and there is also possibility to view preview in explorer.
I mentioned it because it support batch and preserve metadata or transparency. I wrote this for no reason
Bernix -
BPG as a wrapper for hevc intra still encoding is probably never going to get far, now that Apple has thrown their weight behind the HEIF/HEIC format (hevc in mpeg iso base media wrapper). While still not universal, it is much more likely to be compatible with systems that already support hevc-encoded video. And Apple is now using it as their DEFAULT file format for photos! Both on macOs and iOs (newest version, higher-end hardware).
ScottLast edited by Cornucopia; 7th Nov 2017 at 22:47.
-
Hi Scott,
BPG as a wrapper for hevc intra still encoding is probably never going to get far
I understand the strategy to store photos in this or similar format. No quality loss and lots of space and bandwidth saved
Bernix -
xnconvert (from the same maker of xnview) might what you want, if it is for Windows though
Or NConvert (commandline) https://www.xnview.com/en/nconvert/
But i don't understand why you can't find this info yourself?
It ain't rocket science..Last edited by jan5678; 8th Nov 2017 at 06:34.
-
-
I will stick with old good TIF, PNG for work and (just for storing of not so important images) -> BPG
Bernix -
-
Hi Pandy,
that is because I already have plenty of images in this format and honey view and other programs can read it without problem. And I like BPGconv for plenty of option. Chroma, color space, Bit depth, encoder which I want to use x265 or JCTVC (is more effective surprisingly) etc. So why to convert these BPG images to HEIC when it supports alpha channel too, 8 and 16 bit depth, chroma subsampling 4:2:0, 4:2:2 and 4:4:4, color spaces YCbCr, RGB, YCgCo, YCbCr BT 709, YCbCr BT 2020, and if i want to send it to somebody, just convert them back to jpeg or png or let it be on reciever. I don't need lossless cropping and rotating by 90 degrees.
And I forgot it supports metadata also
For animation of course Tif or somebody prefer Tiff, and png which is enough for me.
I understand HEIC or HEIF as replacement for jpeg in mobile devices (in front line), but doubt it soon replace PSD, KRA and similar file formats for real work. And as intermediate work. 100 x (Open modify save). Of course it can work with lossless version, but what nowadays software supports it. And keep "archive of less or more useful images" in several format seems to me be uselessly.
BernixLast edited by Bernix; 28th Dec 2017 at 09:29. Reason: Underlined text
-
I have older version of this:
http://www.mindworkshop.com/gwspro.html
I use it mainly for batch conversions anymore.
-c-Yes, no, maybe, I don't know, Can you repeat the question? -
Hi Hello_hello
I'm a bit late to the thread, but Irfanview has a batch conversion mode
But as I said, I can be wrong and just missed option for TGA in irfanview.
Bernix
Similar Threads
-
How to batch convert/multiplex any files with ffmpeg
By Baldrick in forum User guidesReplies: 215Last Post: 1st Dec 2023, 11:38 -
Batch convert videos to static image with original audio
By dmpiq in forum Video ConversionReplies: 9Last Post: 8th Sep 2015, 10:53 -
Batch Convert .MTS files to .MP4?
By rocketman778 in forum Video ConversionReplies: 13Last Post: 1st Aug 2014, 06:56 -
Hi all, i need VC++ code to convert .bmp files to I B P frames
By tranquyettien in forum Newbie / General discussionsReplies: 4Last Post: 16th May 2014, 04:24 -
Merging a BMP image into a video
By jairovital in forum SubtitleReplies: 30Last Post: 24th Apr 2013, 10:02