Skip to main content
Pudgee24
Participant
May 21, 2019
Question

Photoshop pixel/cm batch to pixel/in

  • May 21, 2019
  • 6 replies
  • 1331 views

Hey everyone!

So I have a bunch of logos that an employee processed and I'm finding myself having to go and edit a couple when errors occurs with our automation system.

Most of the logos were saved out with the resolution set to pixel/cm causing the logo to be incredibly blurry once put into another product of ours.

Does anyone know a quick way to batch all these files and change them to pixels/in?

I tried creating an action but the action didn't recognize the change in resolution when I switched it to pixel/in.

Even a JS code would help out here

This topic has been closed for replies.

6 replies

Legend
May 22, 2019

When the files are placed in the page layout template, they are probably being resized. The designer needs to fix that during placement. Px/cm or px/in won't matter if its done right.

Pudgee24
Pudgee24Author
Participant
May 21, 2019

Hi! Thank you for your responses.

I understand that logos need to be vector files. With that being said, let me clariy why some logos are raster. I work for a company that makes Realtor office printables (i.e. business cards, yard signs, letterheads, etc.). We are doing a huge overhaul in system automation and making our company more efficient. One of our products (name badges) are giving us this blurry logo issue due to the fact that it was saved out during our batch actions with pixels/centimeters. The logos that are used for this product are a mix of vector and raster files due to the fact that the realtor(s) that placed an order with us only had the raster file available and couldn't contact their "designer'.

I troubleshooted the file by simply saving it out as pixels/inch and the logo image looks 10x better. and when it runs through our automated system it works just like it used to when we used quark and design merge to get these products created.

But now since we are using photoshop templates and Canvas JSON to make these products the logos come in super blurry. And only print out a match to their quark/design merge counter parts if I switch them to pixels/inch rather than pixel/centimeter.

I hope this makes more since, if there is anymore confusion please ask away and I will try to clarify as best as I can.

JJMack
Community Expert
Community Expert
May 21, 2019

Logos do not have to be vector graphics.    A large high quality raster image will work very well. If you have large high quality raster Logo image files and you are using  Photoshop, templates and Canvas JSON to make products and the logo come out super blurry it is now because of your logo image files.    It is related to you product building process.  If your process is using Photoshop Place feature it may be related to how Adobe implemented Place and the Print resolutions set in you logo image file compared to the resolution your template have. If you place in a large high quality logo image file that has a high print resolution setting.   Place will drastically degrade the image if the template the has a low resolution setting.   Place resize images its not like dragging and dropping layer or duplicating you logo layers from the logo document into the template document.   Place may be resizing your large logo image to a small logo image when it created the smart object layers object.  If the template file resolution and the logo files print resolutions are the same.  Place will place in your large high quality logo that you can size so it will be the correct size for the product  being built.

JJMack
Pudgee24
Pudgee24Author
Participant
May 21, 2019

Unfortunately it's not due to the Place function in our building process.

So a very old designer who used to wrk in this company saved out these logos poorly. Our art department was tasked to gather all logos that were being used in old Name Badge templates and convert the original logo files to a pdf so it works with our current system in Canvas.

Unfortunately our current designer who gather these logos didn't carefully check each resolution when resampling the image files. Now we are left with a little over 2 thousand logo image files that approximately 70% of them are blurry within the preview of the file. Once the change from pixel/centimeter to pixel/inch is made on an individual file the logo image file appears normal in all aspects.

So from here I'm stuck on how to apply that same change to every single file but I'm not having any luck. I tried creating a script to change that aspect within the Image Size -> Resolution but when the same action is applied to other image file nothing happens and photoshop doesn't recognize that change, but if I do it manually, close it out and re-open it it recognizes the change i made. Wondering why it wont recognize the change from the script.

Is it possible that this will have to be changed within the metadata through a script?

JJMack
Community Expert
Community Expert
May 21, 2019

Pudgee24  wrote

Hey everyone!

I tried creating an action but the action didn't recognize the change in resolution when I switched it to pixel/in.

Even a JS code would help out here

Actions cans not deal well with different sized document  the can not use logic to deal with size.   A Photoshop script can.   However, for a script to work well you need a quality Logo file.   It  need not be a vector logo a large high quality logo will do.    Large image will downsize well and still look good.  A small logo image will not upsize well.  Logo reduced in size will still look good but you can not resize them very small.  Some detail is lost text does not resize small all that well even when its vector text.  If it very small you can not resolve the text with you eyes and you need pixels for detail.  You can not scale text so a page of text will fit on the head of a pin.  An engraver with a high power microscope with secial tolls may be able to but printers can not print pixels the size that would be needd to print a page on the head of a pin. If they could you would not be able to read it without the high power microscope.

Here is a script you can alter to use your high qualiy logo once you crerate it.  http://www.mouseprints.net/old/dpr/PlaceWatermark.jsx

JJMack
JJMack
Community Expert
Community Expert
May 21, 2019

Changing an image print resolution to any  other print resolution without resampling the image will not change a single pixel in an image its image quality will remain the same.  If  you resample a raster image you wind up with a new image with a different amount of pixels then the image you started with.  Its image quality will be less then the image you started with.  For You have either thrown away details to had in the original larger images or you have create details for your new larger image. These details were create by interpolating the old image  and come up with some details the might be somewhat correct. If you have a good Vector Logo its print quality should be good any size you need

JJMack
D Fosse
Community Expert
Community Expert
May 21, 2019

Resolution - whether expressed in pixels per inch or pixels per cm - is just metadata. It's printing instructions, not a property of the file, and it can be changed arbitrarily without affecting the pixel data. The file itself is just made up of a certain number of pixels, nothing else.

That said, there is a more urgent underlying issue here. Logos shouldn't be raster image files - they should be vector files. Logos shouldn't be made in Photoshop at all! They should be made in Illustrator.

Vector files are infinitely scalable. They are just mathematical formulas, size-independent. A raster file is a very different animal - it's discrete pixels and you can't really scale a raster file - you need to use the pixels you have.

Sahil.Chawla
Adobe Employee
Adobe Employee
May 21, 2019

Hi there,

As the logos are getting blurry when you put them on another image, I believe it cannot be fixed just by changing the values of the logos.
It's a resolution issue, could you please let us know the width & height of the logos?

If the logos have a low resolution then they will look blurry if you put them on a high resolution document.
Also, would you mind sharing a screenshot with us? As it would be helpful for us to identify the issue.

Regards,
Sahil