472,131 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,131 software developers and data experts.

Source code to resize jpeg

After a half hour inet search I'm looking for a link here. Where can I
find a cpp source code for in-memory jpeg resizer? Thanks.

Nov 17 '05 #1
3 11277
Mihajlo Cvetanovic wrote:
After a half hour inet search I'm looking for a link here. Where can I
find a cpp source code for in-memory jpeg resizer? Thanks.


You won't.

What you need to look for is a JPEG decoder AND an Image processing library
AND a JPEG encoder.

The standard free JPEG library is libJPEG, also known as "IJG". You can
find it at www.ijg.org.

A widely used image processing library (which includes libJPEG, IIRC) is
ImageMagik, which you can find at http://www.imagemagick.org/.

-cd
Nov 17 '05 #2
Carl Daniel [VC++ MVP] wrote:
Mihajlo Cvetanovic wrote:
After a half hour inet search I'm looking for a link here. Where can I
find a cpp source code for in-memory jpeg resizer? Thanks.


The standard free JPEG library is libJPEG, also known as "IJG". You can
find it at www.ijg.org.

A widely used image processing library (which includes libJPEG, IIRC) is
ImageMagik, which you can find at http://www.imagemagick.org/.


This'll teach me to always search a site with google. Thanks again.

Nov 17 '05 #3
Actually, you have some alternativs for the solution of your problem,

1. You can use Bitmap class to write your own resizing algorithm,
which can be bilinear or bicubic. For this you need to access points
of the image and modify the image. However this would rather be slow
both in running time and as setup cost.

2. As a second alternative you can install and run the Open Source
Computer Vision library, which is the best possible available image
processing library you can find. I was first developped by intel now
it's open source. you can find it from :
http://sourceforge.net/projects/opencvlibrary/ It comes
with lot's of image processing functions and it's really fast. If you
need the max. acceleration, you can use the Intel Performance
Primitives Library (IPP) which has, signal processing, matrix and
image processing sub libraries, and written in the most optimized way
possible. If you install it under Open CV, open CV will detect it and
use the ipp functions. you can see ipp as the lowest level of image
processing algorithms, and Open CV as a warpper for it.

Ps. You can fins Intel IPP easily with a search at Google or Intel's
web site.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tim Zhao | last post: by
reply views Thread by Marcus Jacobs | last post: by
135 posts views Thread by Xah Lee | last post: by
7 posts views Thread by Tina | last post: by
66 posts views Thread by Jon Skeet [C# MVP] | last post: by
4 posts views Thread by Spizzat2 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.