Skip to main content
Inspiring
October 12, 2018
Question

Image Type

  • October 12, 2018
  • 1 reply
  • 469 views

Hi,

     I have different types of extensions of images.  I need to identify the image type whether it is raster or line (vector) images.  How to identify the images using scripting? Is there is any property to get that info? using photoshop or illustrator...

Regards,

Sudha K

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
October 12, 2018

If an Image File Format supports transparency or vector graphic an actual image file may not contain transparency or vector graphic that depend on the file's image content.  Photoshop also does not treat some Image file types that contain vector layers as a layered file and will open the document in  Photoshop as a single raster layer which may have transparency.  I do not install Illustrator  It however should open vector files like .svg as a layered document for Illustrator is Adobe vector editor.   I also do not know which image file type the AI supports.

JJMack
Sudha_KAuthor
Inspiring
October 12, 2018

Hi,

     Thanks for your information..

     Provided information seems to be unclear. Please share clear idea to identify the types.

JJMack
Community Expert
Community Expert
October 12, 2018

As script would need to analyze the file data content and know how  Photoshop and know how illustrator will process the files data. For example Adobe doe not list  .SVG files as a file type the Photoshop supported. Yet if you open a SVG file in Photoshop it will open as a single Raster layer with transparency.  There will be no vector or vector layers in Photoshop however Photoshop open process did use vector graphic scaling the image to the size you specified in open's dialog  rasterize SVG Format.  You also may be able to install a Photoshop extension like SVG Layers.  That extension can import some SVG file into Photoshop as a layered document like a SVG  should be. However, all SVG features are not supported. AI would open the svg as a layered dicument.

JJMack