About 18,373 results: "php ceil"
Page 7 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On

















  1. 									if ($this->w && !$this->h) {
  2. 										$this->h = ceil($this->w / ($this->source_width / $this->source_height));
  3. 									} elseif ($this->h && !$this->w) {
  4. 										$this->w = ceil($this->h * ($this->source_width / $this->source_height));
  5. 										if ($this->w && !$this->h) {
  6. 											$this->h = ceil($this->w / ($this->source_width / $this->source_height));
  7. 										} elseif ($this->h && !$this->w) {
  8. 											$this->w = ceil($this->h * ($this->source_width / $this->source_height));
  9. 				$blocksize = 8192;
  10. 				$blockreads = ceil($filesize / $blocksize);
  11. 				$memory_get_usage = (function_exists('memory_get_usage') ? memory_get_usage() : 0);
  12. 				return $this->ErrorImage('Source image is too large ('.$this->source_width.'x'.$this->source_height.' = '.number_format($this->source_width * $this->source_height / 1000000, 1).'Mpx, max='.number_format($this->config_max_source_pixels / 1000000, 1).'Mpx) for GD creation (either install ImageMagick or increase PHP memory_limit to at least '.ceil(($memory_get_usage + (5 * $this->source_width * $this->source_height)) / 1048576).'M).');
  13. 						$memory_get_usage = (function_exists('memory_get_usage') ? memory_get_usage() : 0);
  14. 						$errormessages[] = 'Source image is too large ('.$this->getimagesizeinfo[0].'x'.$this->getimagesizeinfo[1].' = '.number_format($this->getimagesizeinfo[0] * $this->getimagesizeinfo[1] / 1000000, 1).'Mpx, max='.number_format($this->config_max_source_pixels / 1000000, 1).'Mpx) for GD creation (either install ImageMagick or increase PHP memory_limit to at least '.ceil(($memory_get_usage + (5 * $this->getimagesizeinfo[0] * $this->getimagesizeinfo[1])) / 1048576).'M).';



Back to Top