Script logo

in Userscripts.org discussion
Subscribe to Script logo 3 posts, 3 voices



Avindra V.G. Scriptwright
FirefoxWindows

Instead of using thumb.png, can we use large.png? And a width of 126px would take care of overflowing issues. As is, wide logos always get cropped.

Here's a script which does this:

http://userscripts.org/scripts/show/61584

and a script which has a cropped logo:

http://userscripts.org/scripts/show/31864

 
Jake Dahn Admin
FirefoxMacintosh

Great suggestion, I've got this fixed locally, hopefully the changes will be live soon.

 
Tim Smart Scriptwright
FirefoxX11

Avindra V.G. wrote:
Here's a script which does this:

As a friendly challenge, re-write it so it performs a true image scale using the the canvas :p

Unless you are too bored hehe.

EDIT: CanvasRenderingContext2D.scale() isn't actually the function to do this, CanvasRenderingContext2D.drawImage() is...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel