
Using NautilusĪnother way is the compress option in the gui of Nautilus. Just change the part that says -bytes=1M to -bytes=1K for 1 kilobyte or 1G for giga, or another number like -bytes=4K for 4KB pieces. You can even change the size of the splitted pieces. Then I merge them cat new* > newimage.jpg This is another way to split a file and is mostly used for text files like logs, sql dumps, csv files, etc.

Which will split the text file in output files of 1000 lines each. If you are splitting a Text file and want to split it by lines you can do this: split -l 1000 book.txt new So they would look like newaa, newab, newac, newad.) (In all the cases above it will split myimage.jpg in 1MB pieces and prefix the name of the pieces with the word new. If the image is inside the directory /home/cyrex/images you can do this: split -bytes=1M /home/cyrex/images/myimage.jpg new

If the image is inside a directory called images you can also do this: split -bytes=1M images/myimage.jpg new All I do is: split -bytes=1M /path/to/image/image.jpg /path/to/image/prefixForNewImagePiecesĪnd then to put it together I use cat: cat prefixFiles* > newimage.jpgĪssuming am inside the folder where the image is: split -bytes=1M myimage.jpg new Lets says I have an image and its too big (10MB). There are several ways to accomplish this.
