简体   繁体   中英

ContentFlow: how to not scale the pictures?

I am using the excellent jQuery coverflow plugin ContentFlow but I have a problem with it.

The picture at the center is always scaled too much, which makes it blurry. After countless tries, I still cannot see where the problem comes from.

Here are the relevant config options:

// overall scale factor of content    
scaleFactor: 1.0,

// scale factor of landscape images ('max' := height= maxItemHeight)    
scaleFactorLandscape: "max",     

// scale factor of portraoit and square images ('max' := width = item width)    
scaleFactorPortrait: "max",      

I found that by setting the scaleFactor around 0.84, the image shown in the flow is the same size as the original one, but still blurry. Any idea ?

我发现通过将高度设置为图片的确切高度可以解决问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM