Welcome Guest, Not a member yet? Register   Sign In
How to resize multiple images simultaneously?
#1

(This post was last modified: 06-13-2023, 03:20 AM by JohnMoncatkina.)

I'm attempting to resize several images at once using a foreach loop, but the resizing is not working properly. Only some of the images are being resized per page.

How can I ensure that all of the images are resized simultaneously omeglz within my foreach loop on index()?

Please note that the file manager code is run/loaded through AJAX.
Reply
#2

(This post was last modified: 02-23-2023, 08:40 AM by luckmoshy.)

your query is in dilemma so tell us exactly because there is something like dropzone or https://www.dropzone.dev/ why don't you use it? and loop for??? or do you mean  something like or???

PHP Code:
  $bannerName $bannerImg->getRandomName(); 
\
Config\Services::image()->withFile($bannerImg)->fit(1000800true'center')
->
save('imagefolder/'.$bannerName ); 
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply




Theme © iAndrew 2016 - Forum software by © MyBB