Wednesday, December 9, 2009

Photoshop Automation in Action

This afternoon I’m working on re-sizing a folder with a decent amount of images in it.  There are too many images to go through, one-by-one and resize them according to the bosses’ desires.

So, with a little help from recorded actions and automation, I’m letting Photoshop CS3 handle them while I do this blog post.

So, for anyone interested, here is a little bit of information about my small project and the steps required to complete it.

Goal: Resize a large number of images to a square.

Hurdles:  The images are all different shapes and sizes.  Some need to be made taller, some need to be shrunk, some need to be widened, some need to be enlarged.

Step 1:  Separate images into two folders (wide and tall). 

Images that are taller than they are wide should be in the tall folder.  I did this manually.  I had 360 images to convert, so it wasn’t too hard and would have taken longer to find a solution.

Step 2:  Create the Action.

Go to the ‘Windows’ menu, and select ‘Actions’ from the drop down.  Once you have one of the TALL images you want to edit opened and in front of you, click on the little button on the bottom of the Actions panel that says “Create new action”.  Give the action a descriptive name and click ‘Record’.

Now to start the action that you would like to record.  Note that you may hit stop at any time if you need to do something that shouldn’t be recorded.  Conversely, note that all actions are recorded, and you should make sure not to perform any unnecessary actions while recording.

Select “Image Size” from the “Image” pull-down menu.  Since we’re working with the tall images, set the height of the image to the desired height of the finished image.  Click OK.

Now select “Canvas Size” from the “Image” pull-down menu.  Set the width to the desired width of the finished image, and click ok.

Go to the “File” menu, and select “Save As”.  Here you may want to select a new folder to put the resized images in, so that you don’t overwrite the original copy.  Select the folder in which you want to save the image, and click “Save”. 

Last, close the image.  (if you don’t do this step, the process will end with every single image still open).  Now at the bottom of the Actions window, click Stop Recording.

Step 3:  Run the Batch

From the “File” menu, highlight “Automate”, and select “Batch” from the submenu. 

On the Action menu, select the Action that you just created in the previous step.  For Source, make sure Folder is selected, and then click “Choose” to find the folder containing the TALL images (or whichever images you’re getting ready to resize).

For Destination, select Folder, and then choose the desired destination.  (best to do this in a new folder to not overwrite the originals) 

Under Errors, select “Log Errors to File”, and then click “Save As” to choose a place to put the file.  Name it something recognizable.  This file is handy if a batch does not work right.

Click OK, and watch the magic happen.  The images should be resized by the computer right in front of your eyes.

 

After this batch is done, you’ll want to repeat the process, creating an Action that will make the images wider first, and then heighten the canvas size (reverse of what we just went through).

There are a lot of options we didn’t go through here, but today’s project was a pretty basic one.

Friday, December 4, 2009

Filemaker vs MySQL

On my own sites, I’ve always used MySQL.  In fact, I went from knowing nothing about it, to being somewhere in between knowledgeable and expert.  I’m now fluent in SQL, and great at database management.

Well, when time came to go work for someone else, I realized things were a bit more complicated.  Now there are about a dozen people that use the database, some knowing little to nothing about computers.

So basically we end up with a jumbled mess that the three of us in the IT department have to sort out. 

Seems more and more like this will be my role and responsibility.

So, without further ado, I introduce you to…….. Filemaker!

And the crowd goes wild!!!!!…  or not.

All kidding aside, it’s a pretty useful database management system.  From the looks of it, it’s mainly for intranet / network use for in-house data processing.

Some of the features:

  • Graphic view of related tables (database tree structure / map)
  • Calculated fields: make fields that just show info based on other information in other fields.
  • Extensive import and export possibilities – Filemaker supports many types of delimited files easily with click and choose options.  You can also import an entire folder of images (just make sure some data – such as file name – matches something in the database.

I’ll be getting more into Filemaker’s functionalities as I go, but for now, I just wanted to introduce the software.

And now if you’ll excuse me, I have to get back to database cleanup.  Darn PCT files!

Thursday, December 3, 2009

GZip through PHP - Optimizing Website Performance

So my buddy and co-worker Steve gave me a tip on using GZip in PHP.

Apparently, this functionality of PHP can be used if it's enabled through your Apache server. The function it performs is that of zipping up all the file contents of a web page and delivering them to the browser quicker.

I did a little bit of Googling on it, and found this tidbit of code in which I placed on the first line of every page:

ob_start("ob_gzhandler");


Now I should give you my disclaimer here: I have a lot on my plate. With a girl, kid, and a full time job, I have to do what I can when I get a few moments here and there. So, in short, this solution is not fully researched.

I will tell you though that I see remarkable improvement. I got wind that it would decrease page size some 70 percent. It seems to be working well so far.

Advice here is to do a little bit of research on it. And if you're kind enough, share any thoughts or findings on this in the comments.

Abbyy FineReader 10

So we stumbled upon this program the other day and started using it to extract images and text from PDF documents.

Pretty nice piece of software here.  One click starts a new task, gives you the choice of using a PDF or a scan, and then you can tell it whether or not to convert the information into HTML, Word, Excel, Text, another PDF, among other options.

A batch tool will even select a wide range of PDFs, save their names, extract the images into a folder, and clean up the text so that it can be formatted.

I’m still pretty green to the software.  My current project involves a very complicated PDF in which the images and text aren’t well recognized by the software.

If anyone else has used this, let out your thoughts here.

Drinking a Big Gulp

This is the mandatory “Welcome to my Blog” post.  And I’m sure it’s also been said by some that “I don’t know where I’m going and don’t know where I’ll end up, but I’m sure when we get there, we will both happily drink applesauce while spreading peanut butter on the passing goldfish.”

Oh?  I’m the first to say that?  I doubt it.  It’s an internet out there.

So I have a few of my own sites that aren’t yet supporting me full time, and I have a job working on a company’s web site for what is pretty much pocket change, but I’m learning along the way, I like the job, and I’m comfortable at the time.

But I do have some thoughts and findings to share, and I’ll pop them out along the way.  Enjoy.