Link to home
Start Free TrialLog in
Avatar of davinder101
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
Avatar of UnexplainedWays
UnexplainedWays

Do you want to find the size of an image, or do you want to know what size image to create?
Avatar of davinder101

ASKER

I want to find out the size of jpeg image
ASKER CERTIFIED SOLUTION
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 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 ?!?!
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.
Huh.. what happened here - I thought I posted a split :)

Sorry

Changed recommendation: Split points  InteractiveMind {http:#15920456} & uvatbc {http:#15921980}