I had created a php script to batch upload photos. I use it to upload vacation pics after I have had a chance to ?Bart? them. The script looks at files in a directory called ?load? where I have moved them using ftp and saves them to the images database with the path pointing to my images directory. I then have to manually move the files to the images directory.
I made several changes tonight to help with my workflow. First I updated my php script to move the files automatically to the images directory. Then, on the front end of the process, I created a Hazel script to look at a folder on my desktop I called ?photo upload?, scale the image files it finds there to 1000 pixels wide, then ftp a copy of them to the load directory on my server, then move them from the photo upload folder to the trash, then run a shell script which opens the batch upload web page. Now I pick photos that I want to upload and export them to the photo upload folder on my desktop. All the magic happens and I am presented with the text that I just paste into my page content. I love automation.
Automation is sublime
August 28, 2018