Convert for Google Drive (2048x2048)
Posted: 2015-05-05T14:57:24-07:00
Hello.
I have a small headless server with an ARM CPU that runs Archlinux ARM and I am a newcomer to Linux OS.
The reason why I'm using Linux it's because my server has veeeeery limited resources (cpu/ram).
I have thousands of photos stored on that server in jpeg format that I would like to upload to Google Drive. I chose Google Drive because it's free cloud space where I can share some photos with my relatives and friends only.
And it has a nice bonus: it turns into unlimited free cloud space if my photos are uploaded in 2048x2048.
Up to this point it seems that it should be something relatively straightforward to do, even though I still haven't tried it, but I found a website that shows how to resize photos using ImageMagick.
I should say that In fact I want to keep the photos in their original format/size and additionally I want to create a folder with a resized version of those photos. Then I would upload the resized photos folder to google drive.
So, apparently all it should be something along these lines:
So, the obvious question is, will the above line resize all jpeg photos in the current folder to a folder named 'output' while keeping the original photos untouched?
Also, is it possible to automatically label the photos with their file names and folder path? For instance I would like a label to look like:
All that in a very small font size of course.
And while I am at it, does ImageMagick rotate a picture without loosing quality? I'm asking because I didn't find ImageMagick in the lossless jpegtran list of this website.
PS: Did I do anything wrong? While I was writing this post my account disappeared and I had to re-register
I have a small headless server with an ARM CPU that runs Archlinux ARM and I am a newcomer to Linux OS.
The reason why I'm using Linux it's because my server has veeeeery limited resources (cpu/ram).
I have thousands of photos stored on that server in jpeg format that I would like to upload to Google Drive. I chose Google Drive because it's free cloud space where I can share some photos with my relatives and friends only.
And it has a nice bonus: it turns into unlimited free cloud space if my photos are uploaded in 2048x2048.
Up to this point it seems that it should be something relatively straightforward to do, even though I still haven't tried it, but I found a website that shows how to resize photos using ImageMagick.
I should say that In fact I want to keep the photos in their original format/size and additionally I want to create a folder with a resized version of those photos. Then I would upload the resized photos folder to google drive.
So, apparently all it should be something along these lines:
Code: Select all
mogrify -format jpg -verbose -auto-orient -resize 2048x2048 -quality 100% -path 'output' *.JPG
Also, is it possible to automatically label the photos with their file names and folder path? For instance I would like a label to look like:
Code: Select all
/home/photos/wedding/change_rings.jpg
And while I am at it, does ImageMagick rotate a picture without loosing quality? I'm asking because I didn't find ImageMagick in the lossless jpegtran list of this website.
PS: Did I do anything wrong? While I was writing this post my account disappeared and I had to re-register