Posts by dtbaker

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

Charge the same you would in your own country. Work out any tax implications for the other country. I would ask full payment if the job is under $100, half payment if the job is under $500, and a 60/40 payment if the job is above that. My payment terms change as I get to know the customer, eg: after doing a few jobs for a customer I might get a $100 deposit on a $2000 job instead of 60/40 payment.

As long as you get some money up front, if they do a runner you at least have something and can cut your losses.

Best of luck!

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

thanks for reporting. locked as per forum rules

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

Yes could be tricky, especially when the code has come from a tutorial or demo. It would have to be handled case-by-case, but the existing “Do not copy anything” rules should be enough.

I think Envato is doing their best, there is no automated way Envato can check for similar code or designs (it would produce way too many false positives) and it is impossible to reviewers to memorise every single theme on the marketplace.

So it’s up to the community to report any clear rip offs that do make it through the review process (think of all the ones we don’t see as well).

If you believe there is an issue with a theme, report it to support, they will investigate (may take a week or so if they are busy) and get back to you with an answer. If you are 110% sure it is a clear rip off of your item, hit the “CONTACT ENVATO SUPPORT ” button under the item tags, and send a DMCA notice.

Keep positive !

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

Please post if you have approval for “envato specific item promotion”, it makes our job as moderators easier.

http://wiki.envato.com/community/forums-community/forum-rules/
3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

In your theme, link to a PHP script to output the image, instead of linking to the image directly.

eg: http://tf.dtbaker.com.au/wordpress/sport_grunge/wp-content/themes/kids_toys/dtbaker_grayscale.php?uri=uploads/2011/01/photo4_lg-130x130.jpg


if (!isset($_SERVER['REQUEST_URI'])){
    $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1);
    if (isset($_SERVER['QUERY_STRING'])){
        $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING'];
    }
}
$this_folder = preg_replace('#/+#','/',preg_replace('#\\+#','/',preg_replace('#'.preg_quote('dtbaker_grayscale.php','#').'#','',dirname(preg_replace('/\?.*$/','',$_SERVER['REQUEST_URI'])).'/dtbaker_grayscale.php')));
// remove host
$uri = $_REQUEST['uri'];
if(preg_match('#^(\w+)://#',$uri)){
    $parts = parse_url($uri);
    if(isset($parts['path']) && $parts['path']){
        $uri = $parts['path'];
    }
}
$requested_file = trim(utf8_decode(iconv("UTF-8","UTF-8//IGNORE",$uri)));
if(!$requested_file || !$this_folder){
    die("Unable to launch");
}
$image_path = '';
// bump up a dir, if needed.
if($requested_file[0] == '/'){
    foreach(explode('/',trim($this_folder,'/')) as $slug){
        $image_path .= '../';
    }
    $image_path = rtrim($image_path,'/');
}
$image_path .= $requested_file;
$image_path = trim($image_path,'/');
if(is_file('../../'.$image_path)){
    $image_path = '../../'.$image_path;
}
if(is_file($image_path)){

    $image_info = getimagesize($image_path);
    switch($image_info[2]){
        case IMAGETYPE_JPEG:
            $input_image = imagecreatefromjpeg($image_path);
            break;
        case IMAGETYPE_GIF:
            $input_image = imagecreatefromgif($image_path);
            break;
        case IMAGETYPE_PNG:
            $input_image = imagecreatefrompng($image_path);
            break;
        default:
            exit;
    }
    $output_image = imagecreatetruecolor($image_info[0], $image_info[1] * 2);
    imagecopy ($output_image, $input_image, 0, 0, 0, 0, $image_info[0], $image_info[1]);
    if(imagefilter($input_image, IMG_FILTER_GRAYSCALE)) {
        imagecopy ($output_image, $input_image, 0, $image_info[1], 0, 0, $image_info[0], $image_info[1]);
        header('Content-type: image/jpeg');//.$image_info['mime']);
        imagejpeg($output_image);
    }
    imagedestroy($input_image);
    imagedestroy($output_image);
}
3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

Bugger about Safari. Works here in chrome, odd.

setup your image

<img class="greyscale" src="/foo.jpg" />

then run some JS to convert all “greyscale” classed images:

jQuery(function(){
   jQuery('.greyscale').each(function(){
        with({i:this}){
            setTimeout(function(){
                if(jQuery.browser.msie){
                    grayscaleImageIE(i);
                } else {
                    i.src = grayscaleImage(i);
                }
            },1000);
        }
    });
});

function grayscaleImageIE(imgObj) {
    imgObj.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)';
}

function grayscaleImage(imgObj) {
    var canvas = document.createElement('canvas');
    var canvasContext = canvas.getContext('2d');
    var imgW = imgObj.width;
    var imgH = imgObj.height;
    canvas.width = imgW;
    canvas.height = imgH;
    canvasContext.drawImage(imgObj, 0, 0);
    var imgPixels = canvasContext.getImageData(0, 0, imgW, imgH);
    for(var y = 0; y < imgPixels.height; y++){
        for(var x = 0; x < imgPixels.width; x++){
            var i = (y * 4) * imgPixels.width + x * 4;
            var avg = (imgPixels.data[i] + imgPixels.data[i + 1] + imgPixels.data[i + 2]) / 3;
            imgPixels.data[i] = avg;
            imgPixels.data[i + 1] = avg;
            imgPixels.data[i + 2] = avg;
        }
    }
    canvasContext.putImageData(imgPixels, 0, 0, 0, 0, imgPixels.width, imgPixels.height);
    return canvas.toDataURL();
}

if that part works to satisfaction you can play with jQuery to duplicate the image, desaturate one copy, then fade between images on hover.

the other option would be to find some php code to create an image sprite on upload, ie: original image at the top, then a greyscale version of the image appended underneath.

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

Yep, just 1 image for us. Is this what you are after (hover over the 3 buttons)

http://tf.dtbaker.com.au/wordpress/sport_grunge/?tempcolor=green

Not sure on IE support, welcome to test.

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says
3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

We did this on our sport grunge wp template if you’d like to check out the code.

3445 posts
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
+16 more
dtbaker
Moderator
says

Thanks guys! I’ll be in touch.


lol isn’t this self-promotion dt? and you’re a mod! haha
http://wiki.envato.com/community/forums-community/forum-rules/
by
by
by
by
by
by