Welcome Guest, Not a member yet? Register   Sign In
ImageLib - resize AND rotate image possible?
#1

[eluser]Skinnpenal[/eluser]
Hi!

I'm trying to load an image on the server to resize and rotate (and most likely at some point crop too).
Seems to me that I can only do one of these actions since each outputs the image when done.

I'm btw using dynamic_output = true.

Is it possible to do multiple actions before outputing?
#2

[eluser]Teks[/eluser]
Let me see if I understood correctly what you are trying to do:

1) you need to run 2 (or more) image manipulation functions on a single image
2) you wish to end up with just ONE image file at the end (not multiple files, one for every manipulation you do)

So, I'm going to assume the following scenario: you have uploaded an image to a directory on your server, and now you wish to perform a crop, resize and a rotate, in succession - ending up with just ONE, final image in the directory.

If you have a close look at the Image Manipulation class in the User Guide, you will see that under the explanations for the 'resize()' function, it tells you how that if you use neither the 'create_thumb' nor the 'new_image' preferences, it will save over the original image. This supposedly applies also to the other functions. So, if you just leave 'new_image' empty, then you can perform the transforms in succession, and you should end up with just one, single transformed image.

I do not know if this would work with 'dynamic_output' set to TRUE - do let us know once you've had a chance to try it.
#3

[eluser]Treeda[/eluser]
I've found this Thread because i have the same problem.

What you suggested is no solution.
There is no need, sepcial for a fast framework to overwrite the file each time.
It's a file operation on servers side not neccessary.

I think i will go with my own image Crop and resize function.




Theme © iAndrew 2016 - Forum software by © MyBB