Join 2 Tiff files in 1 monopage Tiff file
Hello everybody,
I'm trying to append 2 tiff files in 1 monopage tiff file with this specificity : the second will be appended below the first one.
Files have same columns numbers, but not the same lines number. I don't need to change images contents.
I'm new with JAI and I don't see wich way I have to go. Do I have to work on rasters, or on bufferedData ? Wich one will be quicker ?
Thanks in advance.
After you've installed JAI ImageIO
https://jai-imageio.dev.java.net/binary-builds.html
then the rest is trivial...
//load tiff images
BufferedImage tiff1 = ImageIO.read(/**File/URL to tif #1*/);
BufferedImage tiff2 = ImageIO.read(/**File/URL to tif #2*/);
//combine buffered images
BufferedImage newTiff = new BufferedImage(
Math.max(tiff1.getWidth(), tiff2.getWidth()),
tiff1.getHeight() + tiff2.getHeight(),
BufferedImage.TYPE_3BYTE_BGR);
Graphics g = newTiff.getGraphics();
g.drawImage(tiff1,0,0,null);
g.drawImage(tiff2,0,tiff1.getHeight(),null);
g.dispose();
/*Write out result as a tiff. Instead of using the easy way of
* ImageIO.write(...) I use the ImageWriter directly and specify
* I want LZW compression. I do this because the default settings
* are used for ImageIO.write(...) and those default settings specify
* no compression which would cause a large tif file.*/
ImageWriter writer = ImageIO.getImageWritersByFormatName("tif").next();
ImageWriteParam param = writer.getDefaultWriteParam();
param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
param.setCompressionType("LZW");
writer.setOutput(
ImageIO.createImageOutputStream(new java.io.File(/**output*/)));
writer.write(null, new IIOImage(newTiff,null,null),param);
writer.reset();
writer.dispose();The only time JAI comes in is loading a tif images and saving the resulting BufferedImage as a tif. The actual combining
of the images is simple Java2D.
Similar Messages
-
Is it possible to join two video files?
Is there any way i can use mac os to join two AVI files together, and then create a new copy of the combined video to show on my iPad. if i can avoid using iMovie that would be great.
thanksAs far as i know QuickTime can not support all kinds of AVI, and even it can join AVI files into one, the joined AVI files cannot be imported to iTunes, iPad, iPod, iPhone for playback.
I know a step by step guide on how to merge video files on Mac or Windows
This guide support join all kinds of video and audio formats like MP4, AVI, MPEG, MPG, VOB, MOV, RM, RMVB, 3GP, ASF, WMV, WTV, DVR, DivX, Xvid, M4V, MKV, FLV, F4V, SWF, WebM, OGV, Apple ProRes, AVCHD, MTS, M2TS, M2T, MXF, MVI, DAT, MOD, TOD, MPV, OGM, MP3, WAV, WMA, M4A, FLAC, M4B, AAC, AC3, APE, AIFF, Apple Lossless ALAC, VOC, QCP, AMR, AWB, DTS, AU, RA, OGG and etc
And you can join video files as well convert video to other video or audio formats or keep the same video format as the original one.
And you can also merger several video files even they are not in the same video format.
Hope it helps more or less -
Need to join multiple rar files - help please!
I need to join multiple rar files. what is the equivalent of winRAR or something along those lines for macs? I know of Chunk Joiner, but I've never seen one that has been updated for the new macbook pros.
thanks!OK, I think MacHacha will do the job for you, if not look at RAR Expander or The Unarchiver
-
Hi,
I would like to do join using flat files. Is it possible to do join in ODI?
Please let me if any possibilities.
Thanks in advAs per Bhabani's response, yes - this is possible.
ODI will perform the following actions when you do this (for example, let's say there are 2 flat files - A & B):
- Creates two temporary flow tables in the database - one for each file
- Loads data from file A and B into their respective flow tables
- Optionally creates indexes on required join/filter fields on the flow tables
- Selects data from the two flow tables by applying any join and filter logic that you have defined, and finally,
- Loads the resulting data set into the target table
Hope this helps. -
I recently purchased a Sony DCR SX85 camcorder. It saves the video files in MPEG 2 format. Everytime that I stop recording an event it saves it as a single file. When I start recording again, it saves another single file. Are there programs that will join the video files into one file without re-rendering the files?
I do not have/use one, but I have "heard" there are programs which do smart rendering... look below
I have NOT used the products below, I only forward due to other mentions... so YMMV and all the usual disclaimers... check the links and read to find out if one of the products listed below will rip or convert the files you have to something you need for editing
http://www.corel.com/servlet/Satellite/us/en/Product/1175714228541#tabview=tab0
http://www.womble.com/products/mvw.html
http://www.magix.com/us/movie-edit-pro/ plus $5 Ship
http://www.nchsoftware.com/prism/index.html
http://www.videoredo.com/en/index.htm
http://www.nchsoftware.com/prism/index.html Converter
http://www.daniusoft.com/media-converter-ultimate.html
http://www.deskshare.com/dmc.aspx Digital Media Converter
http://www.any-dvd-ripper.com/any-dvd-ripper-windows.html
http://www.deskshare.com/dvd-ripping-software.aspx
http://www.dvdcopysoftware-reviews.com/dvd-cloner/
http://www.topsoftwareol.com/product/Video/Video_Converter_Standard.html
http://www.erightsoft.com/SUPER.html Multi-Converter <-- supposed to be very good
http://download.cnet.com/FreeStar-Free-Video-Converter/3000-2194_4-10854990.html
http://www.dvddecrypter.org.uk/ or http://www.mrbass.org/dvdrip/
http://www.flaskmpeg.net/download.php Mpeg to AVI Converter
http://www.squared5.com/ MPEG Streamclip Converter
http://www.virtualdub.org/ Mpeg to AVI Converter
http://www.sothinkmedia.com/video-converter/
http://www.videohelp.com/tools/XviD4PSP -
How do I join multiple mp3 files into one mp3 file?
Hello,
I have multiple mp3 files that I would like to join into one mp3 file and to use it as an audio book. This explains how to do it, but in iTunes 12, I do not see an option called "Part of a Compilation" option.
Is there a way to do it in iTunes without installing a new app?
Thank you.Eugene,
Those instructions, if I read them correctly, are about how to collect several MP3s into a single audiobook. They will not create a single continuous MP3.
iTunes does not have the ability to combine multiple MP3s into a single MP3. The best it can do is if you burn them to audio CD and then rip back with "Join Tracks" enabled. The better way is to use an audio editor such as Audacity, or a special purpose combing tool such as MP3 Joiner. -
CDS View: How to define JOIN in hdbdd file?
Maybe I missed something, but how can I define JOINs for a CDS view in a hdbdd file?
I have the following 2 tables and a view. The view claims that there is a syntax error on "left".
I found no examples on how to JOIN in the documentation (only for ABAP).
@Catalog.tableType : #COLUMN
entity Project {
key ID : Integer64 not null;
Name : hana.VARCHAR(64) not null;
Description : hana.VARCHAR(256);
@Catalog.tableType : #COLUMN
entity Scenario {
key ID : Integer64 not null;
Name : hana.VARCHAR(256) not null;
Description : hana.VARCHAR(256);
ProjectID : Integer64 not null;
view MData as select from Project left join Scenario on Scenario.ProjectID = Project.ID {
Project.Name as Project,
Scenario.Name as ScenarioOK, I made some progress, but now I have the following problem:
[1310081] No association with cardinality > 1 allowed in WHERE Clause
@Catalog.tableType : #COLUMN
entity Project {
key ID : Integer64 not null;
Name : hana.VARCHAR(64) not null;
Description : hana.VARCHAR(256);
Scenarios : association[*] to Scenario on Scenarios.ProjectID = ID;
@Catalog.tableType : #COLUMN
entity Scenario {
key ID : Integer64 not null;
Name : hana.VARCHAR(256) not null;
Description : hana.VARCHAR(256);
ProjectID : Integer64 not null;
Variants : association[*] to Variant on Variants.ScenarioID = ID;
@Catalog.tableType : #COLUMN
entity Variant {
key ID : Integer64 not null;
Name : hana.VARCHAR(64);
Description : hana.VARCHAR(256);
ScenarioID : Integer64 not null;
TestTypes : association[*] to TestType on TestTypes.VariantID = ID;
@Catalog.tableType : #COLUMN
entity TestType {
key ID : Integer64 not null;
Name : hana.VARCHAR(64) not null;
Description : hana.VARCHAR(256);
VariantID : Integer64 not null;
view MData as select from Project {
Project.Name as Project,
Scenarios.Name as Scenario,
Scenarios.Variants.Name as Variant
} where Scenarios.Variants.TestTypes.Name = 'SUT'; -
Joining several swf files into one swf file
hello everybody
i've been dealing this issue for too long and decided to ask for help - how can I unite 15 swf files which placed in one folder to a one swf file???
i tried all kindes of merging softwares like "Join (Merge, Combine) Multiple SWF Files Into One Software" and "WinMerge" without success and tried to convert swf to flv (cause i found other merging software for flv files) but again...
I have CS5 so if i'll have to open Flash for this i will, though i'm trying to avoid that and even then i'm gonna need full instructions.
All i need is this simple thing so i'll appreciate very much any help
Thanks & Good Day
KerenHi Ned
Again - thank you very much.
I've got the source files and i'm on the run now.. kind of..
I did as you recomצended and used a code from one of the AS3 UILoader tutorials , and it seems to work:
import flash.net.URLRequest;
import flash.events.ProgressEvent;
import fl.containers.UILoader;
var myLoad1 = "fastflipPage.swf";
var request:URLRequest = new URLRequest(myLoad1);
loader.scaleContent = false;
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loader.load(request);
loader.load(request);
function progressHandler (event:ProgressEvent):void
status_txt.text = "Percentage Loaded" +
Math.round(event.target.percentLoaded);
function completeHandler (event:Event):void
status_txt.text = "Loaded Done";
So... i'm tring to find some answers to my next step : in the code above im loading only one file and i need to load 30 files so they could play one after another. i noticed that i can create many uiloader instances and load several external SWFs in the same scene without writing a script to each one of them... is that right? and if so, how can i do that???
I'm full of hope to figure this task, meantime will look for more answers
Thanks in advance
Keren -
Can we join external Excel file with data to an existing report in BIP
Hi,
I have created a report in BIP and the output being previewed is in Excel.
ex : i'm trying to get emp_id , emp_name, emp_Address from a datasource called "EMPLOYEE_DEV".
Now i have an external excel file (which has data) containg emp_job_title, emp_id, emp_salary...............this data comes from a different datasource called DETAIL_DATABASE.......
My question - is it possible to join an external excel file (from different datasource - DETAIL_DATABASE) to an existing report in BIP(another datsource - EMPLOYEE_DEV ).
Coz at the end i have to show emp_id, emp_name, emp_Address, emp_job_title, emp_salary........by using emp_id as a join between these two.
Please help me with this.
Thanks.Can you load the data from the excel file into a table that you can query against? If so, you can have two data models: one for the employee_dev and one for detail_database source and then use Concatenated SQL Data Source or you can have a single query with the data you need from both tables.
BI publisher allows you to use a file as a datasource, however I believe it has to be an XML file. You should be able to save the Excel file as XML; however if you want to concatenate the data with another data model with a sql query, the data generated has extra tags and I am not sure if you will be able to use it to create a template.
Hopefully others can chime in and provide any suggestions or experiences they have had in dealing with such situations. -
How do I join multiple mp4 files?
I have three mp4 files created from a dvd. I'd like to join them into one mp4 file to put on our iPod. Is there a shareware utility to handle this?
Thanks,
Davidi use Quicktime Pro. haven't heard of any shareware that can do this yet.
-
Joining / Merging csv files into one
Hi,
is there a way to join or merger a bunch of csv files into
one file?
regards
MartinThx Dan, for the reply, well I have the reference manual
right in front of me, and I thought about using cffile, but my
experience has been that cffile is very slow so merging say like 20
- 30 files into one with 600 records in each would be somewhat time
consuming or if even possible? does anyone know?
regards
Martin -
Hi. Im making a small animation and have got 6 fla files that
I want to join together, putting each one into its own scene. If I
open them and copy and paste it asks me if I want to replace files
or not, which i dont want to do. Would it be easier to just use the
SWF's and join them together using a SWF mixer?
Cheers for any help!!hi ggshow,
I know ur a flash xpert dt's y f u don't mind I just want to
ask u a favor, pls help me to my question, bcoz I post dis question
many times in dis forum bt unluckilly no one responding dt's y i'm
begging u sir to pls give me some of ur tym to aswer my concern
bocz i nid t badly to my project & I'm almost out of time to my
deadline.
here r my question:
1. how to put a music selection in a flash site?
here r d sample links dt i'm talking about:
http://ccmbscoe.ifastnet.com/
http://officialkimkardashian.com/
http://liquid-body.com/
2. how to remove d scrollTrackColor in a scrollpane?
here's d code dt i used,
mysp.setStyle("borderStyle", "none"); - dis 1 work
mysp.setStyle("scrollTrackColor", 0x000000); - bt dis 1 won't
work at all
can u pls give me d exact code for this & wer s d ryt
location to put it.
pls help me, i nid it to my project asap.
I'm very sorry f i demanding to much from u.
I really really nid it to my priject hop u undrstnd.
tnx -
How to join download split files
how to join the downloaded split files in mac bookair?
It sorta depends on what was used to split the files. Is it a segmented zip or stuffit file? If so then Unarchiver or Stuffit Expander (respectively) should work. If it is a RAR file RAR Expander should do it.
-
How can I join 2 .wav files?
I need to join 2 short .wav files for a web site.
How do I do it and what do I need.
thanks for any help.WAV can hold audio in both compressed and uncompressed format. [http://en.wikipedia.org/wiki/WAV] The optimal way for joining the files will depend upon the format of the audio format contained in the WAV and the format of the output desired. For general audio I'd go with an audio editor such as Audacity or Amadeus Pro. There are also [scripts for itunes|http://dougscripts.com/itunes/itinfo/jointogether.php] that do this kind of thing, though more restricted in output. If the audio content is mp3 compressed you can use an editor such as MP3 Trimmer to do this without recoding the audio which results in better quality.
-
Joining multiple mp3 files into one
Hi all,
I am very puzzled as to how to merge multiple mp3 files into one, to upload to Mixcloud. Now, I do have the "Join Together" script and it worked like a charm a few times but now it just freezes and there's nothing I can do.
Any ideas? Is there any DJ software, other than Nicecast, that could merge the files?
Any help will be much appreciated.
Thanks!Fronzenfields,
A lot of folks preparing mixes for Mixcloud use Audacity. It is a free audio editor, and has both Mac and Windows versions.
Besides joining tracks, it will also let you do crossfades, volume adjustments and other typical audo editing functions necesary to create a good quality mix.
Editing in Audacity does not modify the original tracks. You import the tracks into Audacity, do the edits, and then export a single MP3.
Maybe you are looking for
-
How can I update my ipod a second time?
I have updated my Ipod once before from ios 3 to generation 4 now that I can't do so much I want to update it again. When I open my itunes it doesn't give me an option to update and when I click update it just says: "This version of the Ipod softwar
-
Oracle Fusion Financials Certification (Fusion Financials versions)
Hi! I looked at Oracle Fusion financials certification page Fusion Financials | Fusion Applications | Applications | Training and Certification | Oracle. One can be certified on Fusion Financials General Ledger 11g or Fusion Financials General Ledger
-
Is it possible to save a picture inside of a column in SQL server?
-
Never having performed a backup before, I was pleased to discover how easy it is to create a burn folder and drag files into it. I dragged two folders - all my pictures in iPhoto, as well as my iTunes Libarary into the burn folder. I inserted a 4.7 G
-
I have a 3 yr old Mac Book Pro. Suddenly, I cannot view videos, continually getting the message "Blocked Plug-Ins". How do I get the proper configuration of Adobe Flash Player in order to get the videos working again?