Mobile app version of vmapp.org
Login or Join
Cofer715

: How to access the code underlying a graphic Given the particular nature of my question, I am not even sure this is the right place to ask. I have relatively simple graphics made in Intaglio

@Cofer715

Posted in: #Color #ImageEditing

Given the particular nature of my question, I am not even sure this is the right place to ask.

I have relatively simple graphics made in Intaglio which all use a certain color and I would like to change that color, say from 99FFFF to FFCCCC. The problem is that I have several hundreds of these graphics.

It occurred to me that, after all, underlying the graphics, there is a text file for the code and that, presumably, this code includes 99FFFF.

Now TextWrangler can search several hundred text files and change 99FFFF to FFCCCC but I do not know how to get and give it the underlying text file.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer715

1 Comments

Sorted by latest first Latest Oldest Best

 

@Harper654

Keep in mind that I don’t use Intaglio. I’ll just answer in general terms.

The typical way to handle this kind of problem would be with styles. Instead of coloring a certain element blue, you would create a blue-fill style and apply that to all of the elements you want to be blue, and then later you can change the color of the blue-fill style to red and all the blue elements change color to red.

If you haven’t used styles a particular document — and it is not always convenient to — then the next typical way to handle this is to run a script within your vector drawing tool that traverses the object tree and finds blue elements and changes their color to red. The script is typically written in AppleScript or JavaScript.

It looks like Intaglio does support AppleScript. If you are creating complicated vector documents or multiple vector documents, you probably owe it to yourself to learn to script your editor. Otherwise you will spend a ton of wasted time laboriously going through element after element, making the same change, dulling your mind. That is why AppleScript exists in the first place, so that you can work 100% creatively, and AppleScripts do the grunt work. Learning to script your first app is a bit daunting, but very rewarding. You can also script TextWrangler with AppleScript, so you can create AppleScripts that automate TextWrangler and Intaglio as if they were one app that can create almost any website.

What you are describing with a text search-replace would work with SVG because they are just XML documents made of plain UTF-8 text. It is unlikely that your native Intaglio document is stored as plain text. You could point TextWrangler to a folder full of SVG and replace #99FFFF with #FFCCCC . Keep in mind that the colors in an SVG could also be written as rgb(153, 255, 255) or or rgba(153, 255, 255, 0) — with or without spaces. But round-tripping from your editor’s native vector document format to SVG and back again could mean a loss of fidelity because SVG may not support all of the features of an Intaglio document, or Intaglio’s SVG export and import may not support all the features of SVG. But if you are making SVG anyway, you can export as SVG and just work as you would with any other Web document. That is a key feature of SVG.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme