Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Yes - agreed. While the script aims to make things more production oriented, 
it'd be far more useful if it used a 
MAX width or height without distortion of the other property.

Any suggestions? 

Original comment by [email protected] on 12 Aug 2008 at 5:26

from timthumb.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Hmm - I've tried something like this:

$values = get_post_custom_values("Image"); echo $values[0]; 
?>&w=465&h="100%"&zc=0" 

Which keeps a constant defined width and the height follows to the correct 
aspect ratio, however when the 
script does it's work inside of WordPress (using the MImbo theme) it's not 
xHTML valid because of the quote 
marks around the 100%. Is there a way to do this and still generate clean xHTML?



Original comment by [email protected] on 12 Aug 2008 at 6:25

from timthumb.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
this was fixed a long time ago. I hadn't realised the issues section here was 
being
used :)

Setting the width/ height to 100% won't work. Tim Thumb was not programmed to
understand percentages.

The original problem was because the code was stretching the image. There is 
now a
parameter, zc, which will zoom and crop the image instead of just scaling it to 
the
new size.

Original comment by BinaryMoon on 4 Sep 2008 at 11:10

  • Changed state: Fixed

from timthumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.