So, you have the thumbnail_generator function and say that it takes the parameters original_file_name, new_file_name and thumbnail_size.
Just call twice!
thumbnail_generator( original_file.jpg, new_file_sm.jpg, 300 );
thumbnail_generator( original_file.jpg, new_file_xsm.jpg, 150 );
source
share