Tag Info

New answers tagged

1

Assuming you are not talking about steganography, you can hide a big image in a bigger file (perhaps the opposite of your question), simply by concatenating it on the end of another smaller image. Though you wont fool ls you will fool many programs that display or manipulate the image, as they will only see the first part of the file and report the size of ...


1

NTFS has some feature called ADS (Alternate Data Stream) which allows you to add data to a file which has no impact on the displayed file size. Maybe something like this also exists for Linux file system like ext4?


0

No. The size of a file is the number of bytes it occupies. You cannot do something to your image file to somehow force the OS to report a different number of bytes than the data within the file occupies.


1

The classic way to rename files is to use mv and for loop. stat -c %y filename gives us time of last modification, which is the same as of file's creation. Stat has file birth date (%w), but it mostly fails, so %y is prefered for file in *.png; do mv "$file" "$(stat -c %y "$file")".png; done Simple solution, no software installation necessary, and does ...


3

You can use the modification time stamp in seconds since Epoch Unix time (also known as POSIX time or erroneously as Epoch time) is a system for describing instants in time find . -type f -iname "*.JPG" -print0 | while read -d $'\0' file; do mv "$file" "$(stat -c %Y "$file")".jpg; done Example % ls -og total 2796 -rw-r--r-- 1 2859518 Jan 2 11:26 ...


3

Install exiftool Use it to rename files according to the exif information in the image. Example: for f in "$@" do exiftool -ext jpg -d %Y%m%d_%H%M%S%%+c.%%le "-filename<CreateDate" "$f" done Adjust output file name format to suit.


0

A great tool is Rapid Photo Downloader Adding the PPA sudo apt-add-repository ppa:dlynch3/ppa Updating and installing sudo apt-get update sudo apt-get install rapid-photo-downloader Use your "lost partition" as input source and configure the target path/filenames based on your exif data in Rapid Photo Downloader


0

It is easy. Install jhead Go to the photos directory and run this command jhead -ft *. This will set the file date in the filesystem with the create date of the exif metadata Now just go to the top menu (in Ubuntu you most go with the mouse through the top of the monitor screen), select View → Sort Images → By Date.



Top 50 recent answers are included