473,728 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11351
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3889
by: Tim Zhao | last post by:
I downloaded the PHP 5 source code from www.php.net web site. It is a tar compressed file. I used WinZip to unzip it. Now I got a whole bunch of files. But I do not know to read these files. Do I use Visual Studio, or any other IDE tools? Or do I must use a text editor to open each file individually to view it?
0
1556
by: Marcus Jacobs | last post by:
Dear Group I am currently working on a c program and I am in need of source code that can determine the size in pixels (i.e. 600 x 600 pixels) for various electronic picture formats (i.e. *.bmp, *.jpeg, *.jpg, *.tif, *.png, *.gif). Does anyone know where I can access some source code that can perform this task? Any help would be appreciated. Regards
135
7500
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about which is better. It has become what's known as “religious war” — a heated fight over trivia. In this essay, i like to explain what is the situation behind it, and which is proper.
7
1555
by: Tina | last post by:
In 1.1 I used to use a WebControlLibrary to hold code I didn't want to expose when I distributed a component. The code would compile to a separate dll and could not be viewed when used in a vs.net project. That worked fine and I assume it will still work fine in 2.0. However, in 2.0 I tried to use a simple Class library project that also compiles to a separate dll. However when I distribute the dll, the source code is still visible...
66
7456
by: Jon Skeet [C# MVP] | last post by:
I'm sure the net will be buzzing with this news fairly soon, but just in case anyone hasn't seen it yet: Microsoft are going to make the source code for the .NET framework (parts of it, including the BCL, ASP.NET and LINQ) available both for viewing and debugging into. I won't go into all the details here, as they're covered on Scott Guthrie's blog:
4
2221
by: Spizzat2 | last post by:
I'm trying to figure out a workaround to a minor annoyance that I'm coming up with while coding a site. I've got some keyboard shortcuts set up for the site via javascript, and when I press escape, it's set to hide several divs on the page, and remove focus from a link. Unfortunately, I don't know which link will have focus, so I can't just blur a particular element (that I'm aware of) since I won't know which element it is. I got it...
1
1532
Steel546
by: Steel546 | last post by:
I want to understand why certain functions do certain things. Such as in a linked list, I'm looking for the source code behind the list.at(), or list.resize() functions. cplusplus.com only gives references, but does anyone know where to find the behind the scenes work? Thanks.
0
8891
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9409
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9263
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9188
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6704
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4787
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3229
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2642
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2159
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.