davinder101
asked on
JPEG Size
Sir/Madem
i am going to develop a program where I want to calculate the size of jpeg image. so how we calculate it ?
thanku
i am going to develop a program where I want to calculate the size of jpeg image. so how we calculate it ?
thanku
Do you want to find the size of an image, or do you want to know what size image to create?
ASKER
I want to find out the size of jpeg image
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I wand to calculate the size not dimension, in VC++.
#include <sys\types.h>
#include <sys\stat.h>
int FileSize( const char * szFileName )
{
struct stat fileStat;
int err = stat( szFileName, &fileStat );
if (0 != err) return 0;
return fileStat.st_size;
}
http://www.codeproject.com/file/filesize.asp
#include <sys\stat.h>
int FileSize( const char * szFileName )
{
struct stat fileStat;
int err = stat( szFileName, &fileStat );
if (0 != err) return 0;
return fileStat.st_size;
}
http://www.codeproject.com/file/filesize.asp
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sir/Madem
I acctually want to find out the size of the image which is delated & I want to recover it bt the original information is cropped in this case what we do?
I acctually want to find out the size of the image which is delated & I want to recover it bt the original information is cropped in this case what we do?
I still don't get what you're on about...
You don't want the dimensions of the image, and you don't want the file size..... what else is there ?!?!
You don't want the dimensions of the image, and you don't want the file size..... what else is there ?!?!
ASKER
Thanks for solving my problem.
davinder101 : Thanks for solving my problem.
Therefore the points should be awarded and not deleted.
InteractiveMind seemed to have the first and best answer, uvatbc did post a usefull link aswell.
Therefore the points should be awarded and not deleted.
InteractiveMind seemed to have the first and best answer, uvatbc did post a usefull link aswell.
Huh.. what happened here - I thought I posted a split :)
Sorry
Changed recommendation: Split points InteractiveMind {http:#15920456} & uvatbc {http:#15921980}
Sorry
Changed recommendation: Split points InteractiveMind {http:#15920456} & uvatbc {http:#15921980}