Photoshop Script  Black and White Raster to Vector

I do not have AI Adobe for I do not want to spend the money and have to learn an other complex Adobe application. I'm no artist either.  However at rimes I wanted  to have AI live trace feature to change black and white line drawing into vector graphics. AI creates EPS files with embedded vectors. And can export the vector to Photoshop.  Though Photoshop opens EPS as raster layers I find that EPS file created from tracing black and white lines and artwork with programs like potrace that use curves to create black vector shapes. That when these are opened in Photoshop as Black layer with transparency. When these layers transparency are loaded as a selection and the selections converted to path. I find the path are extremely good.
Potrace is a cross platform open source program packages available for many operating systems. Windows (32 bit) and (64 bit), Mac OS X (Intel), Mac OS X (universal),Linux (32 bit) and (64 bit), Linux (Alpha), Linux (Sparc64), Sun Solaris (Sparc), Sun Solaris (i386), Sun Solaris (x86_64), FreeBSD (i386), NetBSD (i386), OpenBSD (i386), AIX and AROS (i386). Potrace is a command line command. So it can be use started with options and passed a file from bat files and scripts. Potrace requires No instillation. All the needed potrace requited files just need to be place into a folder and potrace run from that folder as the current directory.
So a created a Photoshop script that more or less uses potrace like a Photoshop Plug. The script define a custom shape for the current active document using potrace and add a new shape layer using the new defined custom shape as the top layer. The script also toggle off the other visible layers so you just see the shape layer.  You can use alt click on the shape layer visibility icon to toggle the other layer visibility so you can see how well it matches the document.
I'm a windows user so the Photoshop script I wrote though in javascript will most likely only run on a windows platform because of my use of windows features its command line start command and file system conventions. I'm quite sure a Mac variant could created. Here is screen capture showing how well the defile shape  matches up and a link to the script. You would need to download potrace to use it and fix the vars in the script that point to potrace. http://www.mouseprints.net/old/dpr/potrace.jsx

Good day!
Please check out the chapter "Automation" in the Reference.
If the task can be recorded as a plain Action it can be applied to multiple Files for example via File > Automate > Batch or File > Scripts > Image Processor.
Regards,
Pfaffenbichler

Similar Messages

  • How to copy a black and white layer to the mask of another layer.....

    Earlier I asked, "How?"
    Got a reply, but the solution didn't work in PSE 10. 
    After trial and error, I figured it out.
    When dealing with abstract art or even hair, it is too time consuming to make a
    mask pixel by pixel.
    Load the image you want to mask into a new layer and convert it to black and white.  You might need to
    adjust contrast/brightness to maximize the effect..
    Using the Magic Wand tool, click on the WHITE area of the image.   
    Click Edit/Copy.
    Click on the layer you want the mask copied to.
    Next, click on "Add new layer mask" button on the bottom of the layers panel. 
    Your mask should appear and is now ready for a touching up!.

    What’s the correct way to proceed?
    Joke?
    In Photoshop there are often more ways than one to achieve a task and none of them need be considered »wrong« as long as the result fits the intention, so »the correct way« seems to be problematic terminology.
    Anyway, one can use a Layer set to Blend Mode Color and paint on that with whatever colors.
    Or one can use Solid Color Layers set to Blend Mode Color.
    Or Hue/Saturation Layers …
    To edit contrast if necessary Curves or Levels Adjustment Layers can be employed.
    You could also have googled »photoshop colorize black and white« …

  • How to convert a black and white tif image to colour

    I want to convert a black and white tif image to colour. I opened it in Photoshop, changed the mode to RGB colour/8, saved it as psd, but when I use the Replace Colour dialogue box, I just get my colour showing as grey-scale. What’s the correct way to proceed?
    Thank you

    What’s the correct way to proceed?
    Joke?
    In Photoshop there are often more ways than one to achieve a task and none of them need be considered »wrong« as long as the result fits the intention, so »the correct way« seems to be problematic terminology.
    Anyway, one can use a Layer set to Blend Mode Color and paint on that with whatever colors.
    Or one can use Solid Color Layers set to Blend Mode Color.
    Or Hue/Saturation Layers …
    To edit contrast if necessary Curves or Levels Adjustment Layers can be employed.
    You could also have googled »photoshop colorize black and white« …

  • Black and White conversion issues going from LR to PS

    When I take a black and white image directly from Lightroom to Photoshop using "Edit in Photoshop", the black and white conversion doesn't stay true. My image, once opened in PS, is mostly black and white, but has green and magenta casts running throughout. Anyone know how to resolve this without just gray scaling the image again once in PS?
    Screen grab from LR on the left, and PS on the right.
    Thanks.

    Geoff the kiwi wrote:
    How does the OP's green/magenta colouring equate to your stated red/cyan?
    Well, it looks cyan to me. Here it is with saturation boost - assuming the OP made the screenshot correctly, assigning the display profile:
    In any case, the Photoshop bug is well known and well documented, showing up as cyan shadow banding in ProPhoto files, when GPU is set to "Normal" or "Advanced" mode.
    I'm not saying the display profile isn't involved, it most certainly is. The whole issue is the conversion into the display profile. And it also shows to varying degree with different display profiles - sometimes just subtle cyan bands, easily missed until you look for it, other times more pronounced and with secondary red banding (like here).
    It also happens with sRGB as display profile. So the bug is real, no question about that.
    What's different here is that there's cyan also in the highlights. But that could be the screenshot - or it could be "just" a bad display profile. I'm not ruling that out, just pointing out that there is a more likely explanation in this case.

  • Photoshop CS5 only prints in black and white

    Photoshop CS 5.1 only prints in black and white. It is not a new printer (Kodak) and I have printed in color in photoshop in the past. All other applications will print in color. Have removed the settings folder, but that did not do anything.

    This sounds like a conflict with your printer's driver and Ps. Have you looked at a newer one?
    Have you checked the Color settings in your printer's driver? Many, like most of my Epsons, can be set to B/W only. Those settings are on a print-job basis, and once I exit from a program, they are not usually retained, and go to the default, however that has been set.
    Please let us know model and then driver numbers, as there might be something there.
    Good luck,
    Hunt

  • How do I get a black and white photo in Photoshop Elements 11?

    I have a very old version of Photoshop, release 6 I believe.  In that release, I am able to use enhance/brightness and contrast, and when I slide the contrast to 100%, I get a pure black and white image of my photo.  I Photoshop 11, which I just purchased today, I am unable to get a pure black and white image, only grayscale.  I cut pictures out of wood, and it's fundamentally necessary that I can contrast pictures into pure black and white.  How do I do that in Photoshop 11?  The first screenshot is what I need in Photoshop 11, the second screen shot is the limitation I'm seeing in Photoshop 11.  How do I get a black and white photo??

    (I edited this reply because I originally couldn't see the screen shots.)
    There was a change made a few versions ago where Brightness and Contrast were improved so that they did not clip values so quickly. This was intended to improve how Brightness and Contrast worked for photographs, but it makes it work less well for purposes such as channel manipulations or printmaking.
    In Photoshop there is a Legacy check box in Brightness/Contrast to make it work the "old" way when that is desired. It looks like that check box isn't in Photoshop Elements, which is what you're actually using. I'm not sure if there is a way to get the Legacy behavior in Elements, so you'll want to ask over in the Photoshop Elements forum.

  • Help! Photoshop is in RGB mode but I can only paint in black and white

    It seems like Photoshop is stuck in B&W. As soon as I open my document, it shows at the top that it is in RGB/8 mode. I've tried clicking Image>mode>RGB again just to be sure but it's already set to RGB. The document is one layer so there's no way another layer is affecting it. Does anyone have an idea what may be going on? I'd appreciate any help I can get!

    If it says rgb/8 then it is in rgb 8 bit mode.
    If your opening a file, it could be 1 or more of the channels are missing or a single channel is selected. Take a look at the channels panel and see if the RGB channels are there and RGB is selected.
    {odds are this is not it as the name of the channel would replace RGB/8 ex. selecting the B channel would display Blue/8 instead of RGB/8}
    Make sure your document is not in quickmask mode (hitting the q key switches between quickmask and normal mode)
    {odds are this is not it as quickmask/8 would be displayed instead of rgb/8}
    Make sure you don't have a mask selected
    {Odds are this is not it as layer mask/8 would be displayed instead of RGB/8}
    Take a look at your swatches and verify there are colors there and not shades of gray
    {Odds are this is not true because RGB/8 is displayed}
    And finally verify what adjustment layers are applied to the layers panel - Several adjustments are capable of changing the display to black and white while retaining the RGB/8 mode.
    If none of this helps then post a screen shot of photoshop with the layers panel and the channels panel open. You can drag a panel away from the docked position to keep it open.

  • Why does my photoshop keep giving black and white lines when I use my lasso tool?

    why does my photoshop keep giving black and white lines when I use my lasso tool? It has never done this before last night. It filles the Whole lasso seleted box with (what it almost looks like) black and white caution lines. then when I go to zoom out, my zoom option starts to mess up where you cant click and move your mouse to zoom in/out with ease but where you have to click to zoom out (many times).
    Can ANYONE help me?

    I am using CS5, WIndows 7, I am not sure how to tell if my drivers are up to, and I am more than happy to screen shot it.

  • Why does photoshop freeze every time I switch a photo to black and white?

    Why does photoshop freeze every time I switch a photo to black and white?

    Nobody can tell you anything without proper system and version info or other technical details, including what you actually mean by "switch to black and white".
    Mylenium

  • How do I undo black and white default in photoshop?

    Whenever I place a colored photo into photoshop it automatically is placed as a black and white photo by default.  I don't want this to happen.  How do I fix this?

    You have to be sure the file you are placing it into is rgb mode and not grayscale.
    If you File > Place a color photo into a grayscale document, it will turn grayscale.
    So before you do that, go to Image mode in Photoshop and select RGB.

  • Reveresing black and white still Photoshop image in FCP?

    is it possible to reverse the black and white of a still photoshop image within FCP? then remove the background apart from the letters?
    need to get a black and white company logo into FCP for use in the credits of this programme - due to a graphic designer being away i've had to scan the image off letterhead! very backwards and not ideal I know - but its a bit of a emergency so any pointer very much appreciated...

    Drag and drop your image from the viewer to the timeline, lets say in V2.
    Right click the logo clip>go to composite mode>select screen.
    That's it. You now have the white text with no black background and whatever is in V1 replaces the black.
    G.

  • Vectorizing a black and white graphic

    Hi,
    I have a black and white logo with text included in it which I just scanned. All I want to do is convert the image to scalable vector format and be able to individually edit each font as well as the outline of the logo itself. What would be the best way to do this in Illustrator - the version which came with CS2?
    Thanks.

    Since you sate the scanned artwork is a logo, I suggest redrawing / typesetting the logo instead of sing Live Trace. Unless it's by design, logos should non look rough and hand dawn, which is what Live Trace will look like.
    If the logo is for a moderately well known company you could try to download a PDF from their website, which might have the logo in vector format already. Also try
    brandsoftheworld.com.

  • Photoshop Black and White profile for printing

    I'm a black and white photographer, so this issue is extremely important for me to resolve. I've been looking online and I have yet to find the answer, so I hope someone can help.
    I need to know how to set up the black and White profiles in Photoshop for printing. The printer I have is a canon Pixma Pro 9000 a mark II
    I need true black and white. Thank you in advance for any help or suggestions. If you need me to provide additional information let me know.

    I frequently print black & white work on an Epson, using the Advanced black & white feature in the print driver.
    A quick internet search found that there is something similar for Canon -  Canon : PIXMA Manuals : Digital Photo Printing Guide : Black and White Printing
    I print scanned grayscale files, and have the grayscale profile in PS set to Gamma 2.2.
    If you are printing digital photos, they will be RGB, but that will probably not make any difference. But you have to read the documentation for the Canon to find out if it will. IOW - if the image should be Grayscale or RGB.
    One very important thing when printing like this is to set the printer to manage colors (not PS) in the PS Print dialog.

  • Problems with Photoshop black and whites...?

    After comparing the black&white colours from Photoshop to Paint, I noticed that the black&whites isn't as "sharp" in Photoshop. I also noticed that the white colours isn't really "white" since I wasn't able to fill the white parts instantly with the Paint Bucket Tool, unlike using Fill in the Paint program. Does anyone know how I can get around this?

    There can be several things that could effect your issue. If you are using a color calibration device, it may change your white balance. Check and verify that you really are using pure white when filling, a value of 255, 255, 255 thats red, green, and blue. Check and see what color mode you are in, are you in 8 bit, 16 or 32 bit. Are you in RGB, CMYK, or other color mode.
    I am sure there are a few other things, that I haven't thought of at the moment that can effect your issue.
    The next question is what do you mean by black and white? or should I say how did you make it that way. Was it already a black and white (grayscale)? or did you convert it in photoshop and if so how. The reason I ask is there are more than one way to convert a color image to black and white and how you do it will effect the final outcome.

  • How to turn logo into crisp clean vector black and white outline?

    I have the colored logo in vector but I need a crisp clean vector black and white outline.
    Please advise.
    Thank you!

    You might be able to at least color all the dark parts in black via Edit > Edit colors > Recolor art.
    Maybe you can use it as well to color all the other parts in white (depends on how many there are and if it doesn't get too cluttered).
    You might also try to use the magic wand tool to select stuff and then apply different colors.

Maybe you are looking for

  • BUG: Code Insight

    JDeveloper 11g Preview 2 on Windows XP Code Insight is not refreshing properly. Two use cases: 1) Light grayed out indicator that member variable is not in use in a source file does not reliably disappear if you copy and paste exact member variable n

  • Error: exporting versions is done using RAW

    Hi, I'm having a strange problem which I couldn't find in the different communities. My workflow: As usual, I'm importing my pictures in RAW and process it in Aperture (3.1.2). Now, I wanted to export the pictures in JPEG. To do so, I right-clicked o

  • Probelm in use of  - - - - AT End of  statement

    Dear Experts, types : begin of t_ZVAIQ1 ,           vbeln type vbeln,           prctr type prctr,           pfach type pfach,           fkimg1 type i,           fkimg2 type i,        end of t_ZVAIQ1. DATA : itab type standard table of t_ZVAIQ1 initia

  • Photoshop isn't using all the ram that I have.

    I recently installed 8gb of RAM into my Macbook Pro so i could increase the performance of Photoshop. Before using Photoshop, I increased the the "memory usage" slider up to 75% but after I do that, its only using 1gb worth of RAM. Am I doing somethi

  • How to install IOS7 in my iphone4

    how to install IOS7 in my iphone4