PDA

View Full Version : QImageReader & Tiff image QImageReader:: supportedImageFormats();



patrik08
7th November 2006, 10:54
On page i read now ... qt4.2 can read tiff format i supported ......

Target: I like only transform tif2jpg....

....
http://www.trolltech.com/developer/notes/changes/changes-4.2.0/
search tiff inside ....

Why i not find on list QImageReader::supportedImageFormats();
I use 4.2.1 window (mingw compiler) / mac (xcode tiger universal)

& http://artis.imag.fr/Software/TiffIO/ is not possibel to compile on 4.2! win + mingw
200 line of error....





QString filter;
QSettings setter;
filter = tr( "All supported Types" ) + " (";
QList<QByteArray> formats = QImageReader::supportedImageFormats();
for ( int x = 0; x < formats.count(); ++x ) {
/* not list ¨!tiff*/
}

Mad Max
7th November 2006, 12:24
Sadly, but it is not implemented yet :( ... take a look here:
http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=93364

patrik08
7th November 2006, 12:49
Hurra .....! :-)

I compiled http://artis.imag.fr/Software/TiffIO/ imagetiff plugin .... successfull

On Ubuntu Linux...
1) no problem
shell; qmake TiffIO.pro && make && sudo make install

On Mac Tiger Xcode:
1) open the rules.pri file & edit .... find * nothing detected !qt4: CONFIG *=qt3
leave qt3 and put qt4.
shell; qmake TiffIO.pro && make && sudo make install

On Window XP mingw compiler & qt4.2
1) qmake TiffIO.pro ...
2) wait to auto scroll 2000 error line
3) reset Hardware bottom
4) boot Knoppix CD
5) KDE -> start -> Root shell
6) if shel is open enter : fdsik /dev/hda & (remove all NTFS & Fat) end on type a last w

Now on all OS QImageReader:: supportedImageFormats(); return tif & tiff format...

IMO: Window is not a OS!