Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > struggling to save tiff as png and keep file size down
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 14th April 07:45
bob powell [mvp]
External User
 
Posts: 1
Default struggling to save tiff as png and keep file size down



Hmm, I don't know if the encoder can do a 1bpp. I was unaware that it did
8bpp. Maybe this is what it does if the original image has a palette. I
guess you're saving line-art, in that case, why not go for a TIFF 1bpp fax
format?

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
  Reply With Quote


 


2 14th April 07:45
steve k.
External User
 
Posts: 1
Default struggling to save tiff as png and keep file size down



Funny, the image I'm trying to save as PNG are fax tiffs ;0)

I wanted to save them as PNG so that I can display them in a web page and
also make them easy to view by any users.

I'm starting to think that I might revert back to saving them as TIFFs after
running into so much trouble with saving as PNGs.
My application displays a multi-page tiff to the user for data entry. Part
of the data entry process requires the users to select specific pages from
the tiff and "Attach" them to sections of the data entry. For example, they
might enter customer and order details from a single TIFF, the tiff has a
custom info page and an order page. When the data entry is complete and the
data saved in our ordering system I'm attaching the relevant pages to the
appropriate records (IE: customer info page to customer record).

So the requirement started as "I need to break apart the tiff to separate
images files" and I chose PNG (I really like PNG). Maybe a TIFF will be
fine. I could also create a PDF which would solve the problem of users
being able to open them up.

Can GDI+ save a 1BPP tiff? I seem to recal coming across an article
somewhere last night that was claiming .net "can't save 1BPP images" - it
could be that you can't get a Graphics object from a 1BPP image which would
be a problem for me. My TIFFs have a funky resolution (204 * 98) - I've
been resizing them with a square pixel aspect ratio and this requires a
Graphics object.

Lots to learn...

Thanks for your help,
Steve
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666