开发者

Resizing of an image [closed]

开发者 https://www.devze.com 2023-03-19 16:58 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its开发者_Go百科 current form. F
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its开发者_Go百科 current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

How to increase the file size of an image without changing its dimensions. I have an image of 4Kb with dimensions 140 x 60 pixels, I want to change the file size to more than 10kb. Can anyone please suggest me how can I do this without changing its dimensions.


Pad it with zero bytes. In a Linux terminal, you could use

cat image.jpg <( dd if=/dev/zero bs=10240 count=1 ) > image_padded.jpg

to add 10 kilobytes.

I'd need to check to tell you whether the result adheres to the JPEG specifications, but it displays fine in Firefox and the Linux image viewer (eog).


you can change format of picture to others (like bmp). you can change its' pixel format (http://en.wikipedia.org/wiki/BMP_file_format#Pixel_storage). you can make your own picture format.

but why are you asking about this stuff?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号