Try this..
// ---------------- IN YOUR HEADER ------------------ //
#include <jpeg.hpp>
// -------------------------------------------------- //
TJPEGImage *JPG = new TJPEGImage(); // Create new JPG
JPG->LoadFromFile("Image.jpg"); // specify your own Image
Graphics::TBitmap *map = new Graphics::TBitmap();
map->Width = 100; // change to what you require
map->Height = 200;
map->Canvas->StretchDraw(Rect(0,0,100,200),JPG);
JPG->Assign(map);
delete map;
map = NULL;
JPG->SaveToFile("Image.jpg");
delete JPG;
JPG = NULL;
// -------------------------------------------------- //