Force image renaming to start at 1 and increment

See all posts See thread Reply

Re: Force image renaming to start at 1 and increment new!
by colin, 17 years, 8 months ago
Why not explicitely set the names of the five images, one by one?

For instance:
$handle->file_new_name_body = 'image_1';
....
$handle->file_new_name_body = 'image_2';
....
$handle->file_new_name_body = 'image_3';
....
$handle->file_new_name_body = 'image_4';
....
$handle->file_new_name_body = 'image_5';
Reply
Re: Force image renaming to start at 1 and increment new!
by Jason, 17 years, 8 months ago
It will only take the last instance of that handle ($handle->file_new_name_body = 'image_5';)

the resulting images are:
image_5.JPG
image_5_1.JPG
image_5_2.JPG
image_5_3.JPG
image_5_4.JPG
Reply