Sharing for testing the jpeg compress method