tiff

How to display .tiff images in iphone?

自闭症网瘾萝莉.ら 提交于 2019-12-02 22:50:39
问题 I want to display .tiff images coming from server in my native iphone application. Is it possible to display .tiff images in native iphone application? I am trying to solve this problem since 2 hrs with no success. I searched the net for nearly 2 hrs with no solution to this problem. Can anyone help me to solve this problem... Any sample code will be very helpful... Thanx in advance... 回答1: Here it says that the tiff format is supported by the UIImage class so you can load it in one of those

Convert TIFF to 1bit

耗尽温柔 提交于 2019-12-02 17:38:36
问题 I wrote a desktop app which converts an 8bit TIFF to a 1bit but the output file cannot be opened in Photoshop (or other graphics software). What the application does is it iterates every 8 bytes (1 byte per pixel) of the original image then converts each value to bool (so either 0 or 1) saves every 8 pixels in a byte - bits in the byte are in the same order as the pixels in the original image The TIFF tags I set: MINISBLACK, compression is NONE, fill order is MSB2LSB, planar config is

Ghostscript PDF -> TIFF conversion is awful for me, people rave about it, I alone look sullen [closed]

独自空忆成欢 提交于 2019-12-02 17:20:44
My stomach churns when I see this kind of output. http://www.freeimagehosting.net/uploads/e1097a5a10.jpg and this was my command as suggested by Best way to convert pdf files to tiff files gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit What am I doing wrong? (commercial products will not be considered) tiffg4 is a black&white output device. You should use tiff24nc or tiff12nc as the output device colour PDFs - see ghostscript output devices . These will be uncompressed but you could put the resulting TIFFs through imagemagick or similar to resave as compressed TIFF.

C# Generic GDI+ Error when using Image.Save()

时光毁灭记忆、已成空白 提交于 2019-12-02 09:25:17
问题 I am a relative novice with imaging in C#. This is my first question on this board after a very long time of being a member. I hope it can help me get through this tricky scenario. I need to read the contents (frames) of a Multi Page TIFF, saving each one into a List and finally returning it to then do some work with it. Heres my code so far public static List<Image> GetAllPages(string file) { images = new List<Image>(); using (Image img = Image.FromFile(file)) { try { for (int i = 0; i < img

Using TIFF G4 image in PIL

杀马特。学长 韩版系。学妹 提交于 2019-12-02 08:00:42
问题 I wrote a pure python TIFF G4 decompress for use with tifffile.py . I know there are ways to add libtiff to a custom PIL, but I never could get that working very well in a mixed virtualenv. I want to manipulate the image in PIL. I am looking for pointers in hooking my decompressor to stock PIL for TiffImagePlugin.py . Any ideas? 回答1: It appears that TiffImagePlugin does not easily allow me to hook in additional decompressors. Replacing TiffImageFile._decoder with a dictionary of decoders

Create a tiff with only text and no images from a postscript file with ghostscript

蹲街弑〆低调 提交于 2019-12-02 06:48:26
Is it possible to create a tiff file from a postscript-file (created from a pdf-document with readable text and images) into a tiff file without the images and only the text? Like add a maxbuffer so images will be removed and only text remaining? And if boxes and lines around text could be removed as well that would be awesome. Best regards! KenS You can redefine the various 'image' operators so that they don't do anything: /image { type /dicttype eq not { % uses up argument, only one if dict form pop pop pop pop % remove the arguments for the non-dictionary form. } ifelse } bind def

Convert PNG Base-64 string to TIFF Base-64 string

試著忘記壹切 提交于 2019-12-02 03:30:28
问题 I'm using a plugin that returns a PNG encoded base64 string, I cannot change it, I must work with it, but what I really need is the tiff encoded value (base-64). Is there a way of doing this? I tried to create a canvas, load the png base64 and then used toDataURL('image/tiff') but after some research, I'd found that tiff is not supported as output of toDataURL() . Any suggestions? 回答1: As TIFF is not generally supported as target file-format in the browser, you will have to manually encode

After applying CCITT compression on my Tiff File, it produces an image with a solid black background

放肆的年华 提交于 2019-12-02 03:07:11
Creating tiff file, with LZW compression (default):- System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(800, 1000); Graphics g = Graphics.FromImage(bitmap); g.DrawString("Name: " + Name.Text, outputFont, Brushes.Black, new PointF(0, 20)); g.DrawString("Date Of Birth: " + Date_Of_Birth.Text, outputFont, Brushes.Black, new PointF(0, 40)); g.DrawString("Address: " + Address.Text, outputFont, Brushes.Black, new PointF(0, 60)); g.DrawString("City: " + City.Text, outputFont, Brushes.Black, new PointF(0, 80)); g.DrawString("State: " + State.Text, outputFont, Brushes.Black, new PointF(0, 100));

c# How to return a byte array from pdf using iTextsharp

社会主义新天地 提交于 2019-12-02 01:05:11
问题 All, i created the following method to take in a tiff byte array with multiple tiff page document i need to convert this to pdf, then return a pdf byte array i have 2 problems with this code 1 - i want to RETURN a byte []. 2 - the pdf generated is repeating the pages. public void convertImage(byte[] documentContent) { Document document = new Document(PageSize.LETTER, 0, 0, 0, 0); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(@"C:\Data\Output.pdf", FileMode.Create)); --for

ImageMagick: how to batch combine multiple TIFF file to a single TIFF file in a directory?

ぃ、小莉子 提交于 2019-12-02 00:56:55
问题 I have 600 TIFF files in a directory, c:\temp. The file names are like: 001_1.tif, 001_2.tif, 001_3.tif 002_1.tif, 002_2.tif, 002_3.tif .... .... 200_1.tif, 200_2.tif, 200_3.tif The combined files should be placed in same directory and the files should be named like: 1_merged.tif 2_merged.tif ..... ..... 200_merged.tif I am looking for any single command-line /batch-file to do so through ImageMagick convert / mogrify command or any other command/tools. Please note the overall time taken