Foreach ($ info as $ file ){
$ Cc = $ data ['IMG '] = $ file ['savename'];
Echo basename ('./Uploads/42.jpg', '.jpg ');
$ Image-> open ('./Uploads/image name .jpg ');
$ Image-> thumb (150,150)-> save ('./Uploads/image name .jpg ');
$ User = M ("User ");
$ User-> where ("id = '{$ aa}'")-> save ($ data );
$ This-> success ('upload succeeded ', 'CC ');
I want to modify the uploaded image. I don't know what to write at the image name position.
Reply to discussion (solution)
Open the source image, $ file ['savename']
As for the name of the thumbnail, simply add a word or write a common function after it, and generate it based on the source image file name.
Open the source image, $ file ['savename']
As for the name of the thumbnail, simply add a word or write a common function after it, and generate it based on the source image file name.
$ Image-> open ('./Uploads/your filepath 'savename'0000.jpg'); does that mean this?
$ Bb = $ file ['savepath']. $ file ['savename'];
$ Image-> open ($ bb );
$ Image-> thumb (150,150, \ Think \ Image: IMAGE_THUMB_CENTER)-> save ($ bb );
Finally, this solves the problem...