RedBubble Signature

Soldato
Joined
20 Oct 2002
Posts
19,117
Location
London
Any RedBubble users here? Am i right in thinking a RB-generated signature would be breaking the rules here as it's too tall?



If so, any web-monkeys know of a way to maybe resize and rehost it somewhere? Otherwise i might have to get onto RedBubble to provide a slightly smaller one! (I doubt they will..). Shame, i'm sure there's a lot of RB users in the Photography forum that would like to use the RB sig :(
 
I'm sure if you posted in the sig creation thread, someone would help you. In fact someone may come along to this thread, I guess.
 
As Jim said, it's dynamic, hence not as easy as just resizing it. I dont have hosting either to mess about with in PHP. :(
 
Ok I've done it really quick and really dirty
You're gonna need to get some hosting because I don't have much excess bandwidth, but use it for now

I'll see if I can make it properly resize, instead of chopping off.
 
Last edited:
Code:
<?php
$rbimage= imagecreatefromjpeg("http://www.redbubble.com/people/llemmacs/recipe:banner/llemmacs_banner.jpg");
$bgimage = imagecreatetruecolor(262, 75);
imagecopyresampled($bgimage, $rbimage, 0,0,0,0, 262, 75, 262,82);
header( 'Expires: ' . gmdate('D, d M Y H:i:s', time() + 300));
header("Content-Type: image/jpeg");
imagejpeg($bgimage,'',90);
ImageDestroy ($im);
?>
 
Back
Top Bottom