Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

wpthumb not working in production #124

Open
mocheaz opened this issue Apr 14, 2015 · 1 comment
Open

wpthumb not working in production #124

mocheaz opened this issue Apr 14, 2015 · 1 comment

Comments

@mocheaz
Copy link

mocheaz commented Apr 14, 2015

I created a function that work well on my local machine but not in production server.

Here my code:

function video_thumb($pic){
    $w = $pic[1];
    $h = $pic[2];
    $image = new WP_Thumb($pic[0], array(
        'width' => $w,
        'height' => $h,
        'cache' => true,
        'return' => 'url',
        'jpeg_quality' => 80,
        'watermark_options' => array(
            'mask' => 'http://unitedwithisrael.org/wp-content/themes/uwi2013/images/play.png',
            'position' => 'top,left',
            'padding' => 0)
        )
    );

    return $image->getCacheFileUrl();
}

Any idea what's wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@mocheaz and others