douyu9159 2016-10-04 07:26
浏览 38

Wordpress裁剪/缩放图像

I am setting up a affiliate website using Wordpress. From each affiliate I import product images. The images all have different sizes.

In the functions.php file the following default code is used:

set_post_thumbnail_size( 848, 477, false )
if (function_exists('add_image_size')){
add_image_size( 'compare-shop-logo', 150 );
add_image_size( 'compare-single-product-2', 240, 188 , false );
add_image_size( 'compare-slider-image', 848, 487, false );
add_image_size( 'compare-offer-box', 400, 300, false );
add_image_size( 'compare-blog-box', 400, 225, false);
add_image_size( 'compare-quote-box', 408, 437, false );

Now some images are not scalled properly. I tried changing the dimensions and changed the option from 'crop' to 'scale' (and regenerate the images). Inspite of this I can not get the propartionality right.

For example:

On my homepage www.prijsvergelijk.outdoorinfo.nl you'll see the product "Deuter Zugspitze 24" (the blue one) see also screenshot --- http://prntscr.com/cplfgs .

The proportions of this image is not correct. When the product is clicked the orignal image is displayed and these proportions are right. In fact, the images shown here is the Original image.

Anyone an idea?

http://prijsvergelijk.outdoorinfo.nl/product/deuter-zugspitze-24-2/

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)
    • ¥15 keil里为什么main.c定义的函数在it.c调用不了
    • ¥50 切换TabTip键盘的输入法
    • ¥15 可否在不同线程中调用封装数据库操作的类
    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据