3/24/2024 0 Comments Ascii art with only one characterScaling the render was important to gain in performance and object handling. Contrast also because some pictures or objects may be too low contrasted to generate a great render. Creativity comes when user have free hands over processus. It was obvious for me that we can’t force people to use a closed set of characters. More than « Ascii-ing » content within InDesign, my idea was to give control over a few parameters.Characters for instance. Once again, we do not care here about absolute precision. Don’t forget that pixel values are indeed numbers and their translation may leed to some calculation leaks and in fine to a gap. ExtendScript has its own cooking and we are getting the RGB value from another calculation. If we can understand that ICC profiles may affect the RGB values in Photoshop, it’s more suprising to have gaps between AS3 and ExtendScript. Well, I think it’s quite understandable. Once again, the result differs from Photoshop and Bridge. The last function ( HexToRGB ) comes from this link : Is this information correct ? Let see what Photoshop tells us: Var bmd = new BitmapData ( File ( th.path )) Īlert( "Red:"+clr.red+"\rGreen:"+clr.green+"\rBlue:"+clr.blue) A ) BitmapData in Adobe BridgeĪdobe Bridge offers an access to an image BitmapDatas though its DOM. Given a selection in Bridge, the following snippet reveals the RGB value of the first pixel of the image. I will introduce both approaches and then speak a little about the product. As I am delivering an extension, you can understand that I picked the second one. One was pure extendscript using the Adobe Bridge DOM and the other was using the AS3 BitmapData class. In my development, I envisioned two leads. So once you initiated this class, you can now read informations like width, height and every pixel composition. So the question is how to we play ourselves in order to introduce ASCII Art within InDesign ? The answer is called BitmapData. BitmapData is a class that give access to the raw structure of an image. But let’s stick to a simple definition of ASCII Art as a way to express ideas and images by ordering characters in a certain way. If we are more open minded and consider ASCII Art as playing with characters and typography, then the history is quite older. If we only considered the computer side, then ASCII Art is quite recent. It’s hard to state when ASCII Art appeared. If you ever wanted a cool and easy way to play with ASCII Art within InDesign, download the extension and free your mind Do you want to keep the underlying material or remove it ? Just ask it ! Is it possible the render isn’t contrasted enough ? You can boost the contrast to get a better result ? Is the result too large, reduce the scale of the output ! Do you want to use your own character set ? Well, just edit the characters associated to the tonal ranges. Thanks to an extension, you can now generate ASCII Art from images but also shapes, text frames, groups and so forth. Not only I can convert images but any kind of content into ASCII Art. How could I possibly introduce that idea within InDesign ? Finally, I succeeded in getting this done. The concept is easy : take an image and translate every pixel into a representative character. Do you like ASCII Art ? Me too ! A few weeks ago, I have been started thinking if it could be possible to generate ASCII Art from any regular InDesign Content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |