Resizing of an image [closed]
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?
精彩评论