Login   Register  
PHP Classes
elePHPant
Icontem

ratio not supported

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      GIF Animation Resizer  >  All threads  >  ratio not supported  >  (Un) Subscribe thread alerts  
Subject:ratio not supported
Summary:Thanks, work fine but.. ratio ?
Messages:7
Author:aurel
Date:2012-09-06 03:07:28
Update:2012-12-11 10:28:29
 

  1. ratio not supported   Reply  
Picture of aurel
aurel
2012-09-06 03:07:28
I tried to add some code in resizeframes method to make resize with ratio possible, it's almost work fine but not for gif who has different frames size.

  2. Re: ratio not supported   Reply  
Picture of aurel
aurel
2012-09-06 03:42:26 - In reply to message 1 from aurel
i solved my ratio resize probleme and your script still fast :)

  3. Re: ratio not supported   Reply  
Picture of Taha Paksu
Taha Paksu
2012-09-06 06:50:07 - In reply to message 2 from aurel
yes, it's not very hard to calculate the ratio outside this class like:

list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
$ratio = 0.7;
$newWidth = $width * $ratio;
$newHeight = $height * $ratio;

and then the resizing process.


  4. Re: ratio not supported   Reply  
Picture of Martin Buezas
Martin Buezas
2012-12-10 19:55:57 - In reply to message 2 from aurel
would you mind posting your solution?

  5. Re: ratio not supported   Reply  
Picture of Taha Paksu
Taha Paksu
2012-12-10 20:41:13 - In reply to message 4 from Martin Buezas
didn't you read my last post?

  6. Re: ratio not supported   Reply  
Picture of aurel
aurel
2012-12-11 10:19:55 - In reply to message 5 from Taha Paksu
Hi,

http://pastebin.com/htEeq8jf

I guess i tried to improve your script and add ratio, but i cannot remember all this for now.
So i back to you later to more explanation if you want.

sorry for my poor english.

  7. Re: ratio not supported   Reply  
Picture of aurel
aurel
2012-12-11 10:28:29 - In reply to message 3 from Taha Paksu
And at the time a miss your solution but i did something similar but with more ratio options.