Read/Write IFF and make changes - java

How I read the file IFF raster graphics, and make changes to it?

Apparently the Java Imaging Utilities library has a built-in codec for it. I've never used it myself, but I did download it and look through the manual; it looks pretty good.

I think that you are looking for the ILBM file format, once very popular on the Amiga platform.
I found the this article and the same in html here written by Jerry Morrison # Electronic Arts.
If you are just looking in to converting old pictures to lets say ping format to be used in your java app, you can use GraphicsConverter for Mac.
Good luck!

Related

How to Create a .dst Embroidery File using Java

I want to create a .dst embroidery file using Java. Are there any supporting libraries available? Or is it possible to convert any kind of image file to the .dst embroidery file format using Java?
Can anyone suggest any algorithms, encoding-decoding methods, etc?
I am the developer at Embroidermodder working on formats (the link mentioned by theJollySin).
I don't have any Java code, but I can point you to some preliminary documentation of the format (http://www.achatina.de/sewing/main/TECHNICL.HTM).
What are you trying to create in DST? I can assist you with whatever issues you have getting your Java code running.
The short answer to your question is, no. There are currently no popular libraries for generating .dst embroidery files with Java. My guess is that you will have a lot more luck trying to convert other file types to the .dst formats. The only option there (that I know of) is Corel Draw.
In the end, the best solution I can think of is to use the Tajima Ambaasador website. You have to register, but I believe most of their design/DST services are free.
(After some searching around online I also found this website, which has some more free software and seems like the best place to start if you're looking for information.)
Yes. I've written exactly such a library for python (pyembroidery) and trancoded that to java. It will work for both Android and Oracle Java and has fully fleshed out reading and writing of most major embroidery formats.
https://github.com/EmbroidePy/EmbroideryIO
As part of a parallel project I've also done a considerable amount of work documenting various formats for a wiki on the topic. Located here:
https://edutechwiki.unige.ch/en/Embroidery_format
Which also has all the known technical details for DST file formats:
https://edutechwiki.unige.ch/en/Embroidery_format_DST
As for the second part of the question, embroidery files are vector-like files which provides a series of commands to be issued to an embroidery machine. You cannot directly convert raster-based image files to embroidery because the pixel information does not directly convert to any sort of embroidery machine command instruction structure.

What is the platform independent sound format in java

I am working on a chat application in java. My program need to play sounds at regular interval as the message arrives. What are the sound format should I choose to play on (Windows/Linux/MacOS) platforms, without using external liberaries
Sound-formats are all platform independent. The question is: Is there a Codec on the target platform which supports this format.
If you're developing a chat-application i guess you won't use high quality audio things, so Sun Audio-files should work for you. Check out this older post on how to use them.
For some reason .ao seems to be the lowest common denominator for Java, while .wav seems to be used almost everywhere else for notification-sounds (or possibly even .ogg or .mp3).

Java + OpenOffice, Is interop automation really this difficult?

I'm trying to re-write a C# application of mine in Java. I've chosen Java because our target platform is now Linux, no longer Windows.
My C# application used Microsoft Office Interop to automate things like Word and Excel. It would simply open different documents and apply our formatting to them (adjust column width, remove italics, etc). Finally, it would save the documents as PDF.
Now that we are targeting Java and Linux, and knowing that OpenOffice can do all of these things, I figured it would be a smooth transition. OpenOffice is open source, so it must have a relatively nice automation interface, right?
I've been Google'ing and looking at docs all morning. I've downloaded the OpenOffice SDK. I've followed instructions involving installing MinGW and a Zip toolkit. I've tried NetBeans plugins and Eclipse configuration settings.
The funny thing is, I'm not even sure if I'm in the right direction. I've been reading about OpenOffice UDO interface, but that sounds more like in-OpenOffice Scripts, like VBA or something.
Does anyone know if there's simply some sort of import that allows me to use OpenOffice to open and manipulate documents, similar to Office's Interop libraries? If so, know of any recent examples or blog posts, etc?
Yes, the OpenOffice jar files themselves (from the app) are the SDK. The interface involves calling methods in them. It's not hard once you figure it out, but I agree, documentation for it is pretty weak. It was definitely written by people that know how to do it, and can use it as a reference, but aren't any good at explaining it to others. :-)

how to convert html page to image using java or php

I want to know how to convert html file to image. How do I do this?
You can checkout the source code for the popular BrowserShots service,
http://browsershots.org/
If you're running Windows, and have the GD library installed, you can use imagegrabwindow. I've never used it myself, but as always, the PHP site has lots of documentation and examples.
Use:
WKHTMLTOPDF.
It also has binding to PHP, or you can run it yourself from command line.
Problem is that you need to implement all the functionality of a browser and an HTTP stack (and this still does not deal with the case where the content is modified using javascript).
As John McCollum says, if you've got the website open in a browser on your PC, then you can use imagegrabwindow or snapsIE (MSIE only)
If you want to to be able to get a snapshot using code only, then you might want to look at one of the off the shelf solutions - AFAIK there are several programs (at least 2 of which are called html2pdf) which will generate a PDF of static html - and its relatively easy using standard tools to trim this to window size and convert to an image file.
e.g. https://metacpan.org/pod/distribution/PDF-FromHTML/script/html2pdf.pl

Convert troff to nroff

My project requires me to convert DITA to nroff, but the toolkit I'm using (DITA Open Toolkit) only converts to troff.
Are there any toolkits (preferably java, but any language will do) that can convert from troff to nroff? I'm not even sure of what the difference is, but from some googleing they appear to be very closely related.
They are really close related. Most format commands are understood by both tools, the main difference is how the final output looks like when you print/view the documents after running it through nroff/troff (see this article for an overview).
So you should get away with the tools you already have. Note that on most modern Unix systems, groff will be installed which comes with both frontends.

Categories

Resources