Source code for algorithms used in IrfanView?

620 views10 repliesLast post: 12/24/2006
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

Thank you very much for your kind assistance,

-Ramon F Herrera

ps: IrfanView can be found at:

http://www.irfanview.com

The operations I am interested in are those under Control-R
#1
Hi Ramon,

am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

I'm not familiar with IrfanView, but you could check out the FreeImage Library which is an open source image editing library.
http://freeimage.sourceforge.net/ I have used it in some applications with pretty good results.

Ok, downloaded and installd IrfanView. The ^R functions you can perform using FreeImage. It supports Bilinear, B-Spline, Bicubic (Mitchell) , Catmull-Rom and Lanczos resampling filters as well as box, which I believe is the same as the "resize" option in IrfanView. This library is easy to work with in pretty much any language that supports standard 32bit DLL usage.

Hope this helps:)

--
Arnor Baldvinsson
San Antonio, Texas
#2
Arnor Baldvinsson wrote:
Hi Ramon,

am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

I'm not familiar with IrfanView, but you could check out the FreeImage Library which is an open source image editing library.
http://freeimage.sourceforge.net/ I have used it in some applications with pretty good results.

Ok, downloaded and installd IrfanView. The ^R functions you can perform using FreeImage. It supports Bilinear, B-Spline, Bicubic (Mitchell) , Catmull-Rom and Lanczos resampling filters as well as box, which I believe is the same as the "resize" option in IrfanView. This library is easy to work with in pretty much any language that supports standard 32bit DLL usage.

Hope this helps:)

--
Arnor Baldvinsson
San Antonio, Texas

It definitely does. I tried to buy that part of the source code from Irfan, but he told me that he doesn't want to sell it. He is the one that told me about the book and the code being in the net. Oh well, I'll take a look a FreeImage, then.

Thanks, Arnor!

-Ramon
#3
In article ,
Ramon F Herrera wrote:
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

Thank you very much for your kind assistance,

-Ramon F Herrera

ps: IrfanView can be found at:

http://www.irfanview.com

The operations I am interested in are those under Control-R

Look at the code for The Gimp, an open source project that claims to be functionally comparable to Photoshop. I know that it's in professional/industrial use in some ineresting places.

http://www.gimp.org/

--
a d y k e s @ p a n i x . c o m
Harrison for Congress in NY 13CD www.harrison06.com
Don't blame me. I voted for Gore. A Proud signature since 2001
#4
Hi Al,

Look at the code for The Gimp, an open source project that claims to be functionally comparable to Photoshop. I know that it's in professional/industrial use in some ineresting places.

http://www.gimp.org/

Thanks for the link:) I will most certainly take a look at that as I'm always looking for some development tools that I could use:) Free is not bad either:)
--
Arnor Baldvinsson
San Antonio, Texas
#5
Surf for Imagemagick (correct spelling). It includes source code.
#6
Ramon F Herrera wrote:
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

Have you checked out the DirectX api supported by Windows? This should be very fast, since it ties in to the graphics accelerator functions of the video card.
--
Mike Russell
www.curvemeister.com/forum/
#7
Ramon F Herrera wrote:
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

http://www.graphicsgems.org

John Nagle
#8
John Nagle wrote:
Ramon F Herrera wrote:
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

http://www.graphicsgems.org

John Nagle

Wooooow!! That's pretty good stuff.

Thanks, John!!

-Ramon
#9
Mike Russell wrote:
Ramon F Herrera wrote:
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

Have you checked out the DirectX api supported by Windows? This should be very fast, since it ties in to the graphics accelerator functions of the video card.
--

Speaking of that, I just read that Acrobat is going to be accelerated also:

http://www.planetpdf.com/enterprise/article.asp?ContentID=NV IDIA%5FGives%5Fa%5FTurbo%5FBoost%5Fto%5FAdobe&gid=7442

-Ramon
#10
Ramon F Herrera wrote:
Mike Russell wrote:
Ramon F Herrera wrote:
Hello:

I am trying to add fast resizing/resampling operations to my application. I have used as reference the Windows Picture and Fax Viewer and Adobe Photoshop, but I am most impressed by the speed and image quality of IrfanView. I am told that the algorithms used by IrfanView are explained in the book "Graphic Gems III", Edited by David Kirk, which I managed to find (it is out of print). Most importantly, I am told that such source code can be found in some open source programs in the net.

What programs are those? Where can they be downloaded?

Have you checked out the DirectX api supported by Windows? This should be very fast, since it ties in to the graphics accelerator functions of the video card.
--

Speaking of that, I just read that Acrobat is going to be accelerated also:

http://www.planetpdf.com/enterprise/article.asp?ContentID=NV IDIA%5FGives%5Fa%5FTurbo%5FBoost%5Fto%5FAdobe&gid=7442

-Ramon

http://www.nvidia.com/object/testimonial_adobe_acrobat8.html

-RFH
#11