- Original Size: ~ 4 MB
- Compressed Size: ~ 85 kB
/* resize and compress image and preserve aspect ratio */ $image = new elimage; $image->old = 'test.jpg'; $image->new = 'test-thumbnail.jpg'; $image->width = 500; $image->quality = 90; $image->apply();