program/library to read photoshop gradient .grd file - format

Does anybody know program or library that can read the photoshop gradient .grd files or the file format because currently I need to export the gradient in Photoshop to another format like svg gradient.

A document describing the Photoshop Gradients File Format has been mentioned in this PS-Scripts forum:
http://www.ps-scripts.com/bb/viewtopic.php?f=2&t=4925
HTH...

The cptutils package can convert grd to svg (and many other formats). I you just want to convert a couple of files the possibly the online version will meet your needs.

You might try using Gimp; for which this article suggest a free add-on under "Conversion options" (which I have not tried).

http://gitorious.org/re-lab/graphics/trees/master/photoshop/grd is what you are looking for

Related

Processing – What is the fastest way to generate an animated .gif-file out of Processing 2?

i am not shure, if there are many Processing-people inside Stackoverflow, anyway:
What is the fastest way to generate an animated .gif-file out of Processing 2?
Thanks in advance!
You've got a couple of options:
Use the gifAnimation library
Save an image sequence from Processing, then encode a gif with an external tool (like ImageMagick,GIMP, Photoshop, etc.)
Also check out this answer for more details
George's answer is correct if you want to do this programatically, and it's what you should do if you care about gif quality.
Another quick and dirty alternative is to capture your screen directly.
I use a tool called ScreenToGif. You can record your sketch directly, without any exporting or encoding on your end.
Here is another question with a bunch of similar tools.

Graphviz not supporting UTF-8 encoding

I have created a dot file.which contain some korean language in some node's label .i created png file with help of graphvig tool but that created png doesn't support korean language it appear as square box. if i create svg file then it works fine.
help me how to resolve this.
Also try running dot -v to see what plugins and font files are being loaded. Generally we expect UTF-8 to work (a lot of work was done on this over the years), and text layout through the cairopango driver works well. A downside is that pango now does its own font lookup which is somewhat of a black box to other code. (pango recently dropped fontconfig, which is understandable. We did not ever discover a way to determine if fontconfig failed to find a good match for a given specification - it would cheerfully return e.g. a typewriter font when it could not find any other match.) Hope this helps a little.
Stephen North (for the graphviz project)
I had the same problem, when a .png file is generated, the non-ascii chars is not rendered correctly.
My alternative solution is to use the .svg output (via some command like: dot -Tsvg my_graph.gv), which left the font-finding problem to the svg viewer.
You can open the .svg file with a Web Browser. And most Web Browser also support the save as function to convert the .svg file to .png if you insist on the .png format.
Hope this helpful
I met the same problem, and adding the following lines helped me:
strict digraph {
node [ fontname="Adobe Kaiti Std" ];
edge [ fontname="Adobe Heiti Std" ];
}
Use a tool to convert the SVG file into a PNG. I suggest Batik. You'll have to deal with installing fonts, of course. Alternatively, you can use Inkscape, though that's slightly more of a manual process.
Make sure to define a korean fontname in your graph.

automated fast svg to raster-image (e.g. png) conversion

I'm looking for a tool to convert an svg to a raster-image (png for instance) from a shell script (bash).
Currently I use inkscape --export-png=image.png --export-area-drawing image.svg which works well, but is terribly slow.
Searching the Web and SO only gets me libraries to do this inside some programming language (php, js, C#, ...). I could write myself a small program to do this, but I would prefer an existing tool (other than inkscape as it is quite slow).
It is possible using librsvg2
All the details are here
The ImageMagick library also has command-line tools that can do this. While it certainly supports SVG I'm not sure if it will give the same quality of results as InkScape unless your svg's are fairly simple..
I you want to batch export whole or parts of SVG files to PNG in different sizes take a look at my tool inkmake.

How to import GIF files into Beamer presentation?

I need to import animations from Maple into my LaTeX/Beamer presentation. I save a file in GIF format. But later I have problems converting that file into PNG. All I get is a static PNG file and can't proceed ((( What's the full code to do that in LaTeX?
You can use the animate package to animate a series of PNGs. To get the series of PNGs from an animated GIF, use a tool like ImageMagick's convert.
Does this help: LINK? (This is the same answer as marcog... just wanted to provide a reference to it being asked previously -- the solution was the same: the animate package).
Also, your OS will matter. I don't know that Linux (not saying you're using it) has any ability to play animated PDFs. I've tried embedding movies using LaTeX and while it "works," you can't actually view them in anything Linux offers yet. Okular is working on it, but last I checked (couple months?) it's not possible yet.
Anyway, just wanted to add that just in case you were doing everything completely right and by chance are not seeing the fruits of your labor since you're using a Linux viewer. Check your work with Acrobat on Windows to be sure.

Creating nice pdfs with ruby

I would like to create pdfs with ruby. One special need is embedding a picture into text (or a textblock), which means I need to be able to let the text flow around the image. E.g. the image should be in the rigth upper corner and the text should start left of the image and continue after the image by using the whole width of the page. How can I do this in ruby? Thank you for any suggestions!
In the past to get print quality PDFs in Ruby, I used rtex.
It's fast too, which is a real bonus.
Prawn to the rescue?
I like the html -> pdf approach. Although it is probably not the best option (prawn is) it makes it easy to design the pdf. See this website. You could also go for the approach documented at jimneath.org.
Good luck
iText is the heavyweight that will allow you to do anything you want with PDFs you can bridge to it with jRuby.
Another option I used was driving open office (it has a ui less option which you can automate from Ruby)
How about having Ruby generate some LaTeX code, then use pdflatex to produce the PDF?
Although I haven't done it myself I've seen people use a headless Open Office. You can control it from Ruby and use it to generate PDF files. You can even use an Open Office template and just fill in some elements into it.

Resources