Welcome Guest, Not a member yet? Register   Sign In
crop() does nothing when cropping 100%
#3

[eluser]splufdaddy[/eluser]
Sorry for the second bump, but I'd love to get my change incorporated into CI.

I changed line 460 of Image_lib.php from this:
Code:
if ($this->width >= $this->orig_width AND $this->height >= $this->orig_height AND $this->dynamic_output !== TRUE)
to this:
Code:
if ($this->width >= $this->orig_width AND $this->height >= $this->orig_height AND $this->dynamic_output !== TRUE AND $this->full_src_path == $this->full_dst_path)

and crop works.

I'm not sure if you'll want to add some additional logic, because now if we're trying to crop an image to a new location and the crop width or height is larger than the original width or height, the crop will continue.


Messages In This Thread
crop() does nothing when cropping 100% - by El Forum - 04-06-2008, 02:42 PM
crop() does nothing when cropping 100% - by El Forum - 04-08-2008, 08:39 PM
crop() does nothing when cropping 100% - by El Forum - 04-13-2008, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB