bash - Image file size is too small. I want it increased -


Is there a way to pad or an image in JP (JPEG) is "decompress"? This means, if the image size is 1.5 MB, then I pad it up to 5 MB, for example. The resulting quality of the image (such) is not important and if it padding leaves a black rectangle from the edge of the image then it is acceptable.

Edit: The only answer below was guessed that this was an XY problem

A quick experiment indicates that only a byte by a *. The Jpg image file still allows to see it.

On Unix, I used a command like this:

  (cat original.jpg; dd if = / dev / zero bs = 1024 count = 1024) Gt; Bigger.jpg   

I suspect that any arbitrary data, not just zero, will have the same result.

(The image probably does not increase in the file size by adding a black rectangle by using an image editor, compression works really well on a solid color block.)

I could probably imagine a good reason to do this.

Update:

Depending on your comment, it answers the question you asked, but almost certainly resolves your real problem Will not

This is classic.

Comments