Bitcoin Forum
May 05, 2024, 07:09:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: URL service w/ thumbnail generation  (Read 1917 times)
ageisp0lis (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0



View Profile WWW
July 29, 2012, 06:08:36 AM
Last edit: August 07, 2012, 01:08:31 AM by ageisp0lis
 #1

Hello my fellow Bitcoin hackers...
I have made this service, like a TinyURL but not because I don't have a short domain.
The killer feature is the thumbnail generation. It's fast, free and has no watermark.
This uses a psuedo-hash involving base 62 encoding and prime numbers near the golden ratio.
Each website is stored with a unique integer value, so the "hash" will always be unique and there will never be a collision-- but furthermore, the same URL always has the same hash.
Also, I implemented an auto-complete using a very large dataset of Alexa's top sites.
I am not much of a developer, so I just made this for fun and to brush up on my PHP skills.
This is intended to be Bitcoin-friendly. . . if I can get a short domain I would be happy to deploy it there.
Feel free to use and share it!

http://ageispolis.net/url/

Update: Also at http://sv.gd !
1714936199
Hero Member
*
Offline Offline

Posts: 1714936199

View Profile Personal Message (Offline)

Ignore
1714936199
Reply with quote  #2

1714936199
Report to moderator
1714936199
Hero Member
*
Offline Offline

Posts: 1714936199

View Profile Personal Message (Offline)

Ignore
1714936199
Reply with quote  #2

1714936199
Report to moderator
1714936199
Hero Member
*
Offline Offline

Posts: 1714936199

View Profile Personal Message (Offline)

Ignore
1714936199
Reply with quote  #2

1714936199
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714936199
Hero Member
*
Offline Offline

Posts: 1714936199

View Profile Personal Message (Offline)

Ignore
1714936199
Reply with quote  #2

1714936199
Report to moderator
1714936199
Hero Member
*
Offline Offline

Posts: 1714936199

View Profile Personal Message (Offline)

Ignore
1714936199
Reply with quote  #2

1714936199
Report to moderator
someguy123
Sr. Member
****
Offline Offline

Activity: 336
Merit: 254


CEO of Privex Inc. (www.privex.io)


View Profile WWW
July 29, 2012, 07:24:33 AM
 #2

I've changed SV.GD's A record to point to ageis's site, so now http://sv.gd will be the new (temporary?) short URL for ageis's URL shortner.

ageisp0lis (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0



View Profile WWW
July 29, 2012, 09:19:09 AM
 #3

thanks someguy123, you're awesome.
I updated the codes a bit so it will deal more gracefully with being accessible at both locations.

=D
gbl08ma
Sr. Member
****
Offline Offline

Activity: 306
Merit: 250


Donations: http://tny.im/nx


View Profile WWW
July 29, 2012, 01:14:53 PM
 #4

Would you be interested in working with my URL shortener tny.im? The URL Preview page (see an example: http://tny.im/3A~ ) shows a thumbnail that is currently powered by thumbalizr, but I don't like it very much (too many "pictures queued"). I'm looking for a better thumbnail solution, and I'd like to know if you are interested in helping.
Credit would be given on the preview page and on the About page, and I could offer advetising space for anything SFW.

ageisp0lis (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0



View Profile WWW
July 29, 2012, 04:36:18 PM
 #5

@gbl08ma my thumbnail solution is CutyCapt + xvfb. I will e-mail you the details to admin@tny.im
gbl08ma
Sr. Member
****
Offline Offline

Activity: 306
Merit: 250


Donations: http://tny.im/nx


View Profile WWW
July 30, 2012, 12:44:02 PM
 #6

Thanks! I have replied, I'll certainly not forget to mention your help on my website and at the partners list on http://i.tny.im .

mc_lovin
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


www.bitcointrading.com


View Profile WWW
August 01, 2012, 09:44:50 PM
 #7

pretty neat!  but my thumbnail is over 1400 pixels high.  I guess BitcoinTrading.com is just too tall for thumbability. 

I don't directly need the thumbnail, I can photoshop one but I am just providing input on the service: you should provide max width/height sizes and/or options of thumbnail sizes.

but great service btw! it works well!  the bitcoin trading wallpaper seems to be missing though.

I tried to create one for WTCR.ca but it failed?  I think the URL works but the thumbnail 404's.

I think your 404 page is awesome though.

Then I tried to create it again, and it worked the second time, but the thumbnail is totally wonky.
frisco2
Sr. Member
****
Offline Offline

Activity: 312
Merit: 265


View Profile
August 05, 2012, 09:44:48 PM
 #8

Hello,

I'm looking for a thumbnail service to preview linked urls, for my website Propster. For example, this page links to Seti@Home. I would like to show a thumbnail in addition to the link:

https://propster.me/tipjar/0cami8t

Do you have such an instant thumbnail service ?

Boris

Crosspass -- a simple way to send passwords, encryption keys, bitcoin addresses, etc.
gbl08ma
Sr. Member
****
Offline Offline

Activity: 306
Merit: 250


Donations: http://tny.im/nx


View Profile WWW
August 06, 2012, 04:43:37 PM
 #9

Hello,

I'm looking for a thumbnail service to preview linked urls, for my website Propster. For example, this page links to Seti@Home. I would like to show a thumbnail in addition to the link:

https://propster.me/tipjar/0cami8t

Do you have such an instant thumbnail service ?

Boris

He does not provide it, but you can set one up with CutyCapt and X virtual buffer as he explained. I believe such a solution will be faster and cleaner (no watermarks or API limits) than any other 3rd party API. To make things faster, you could thumbnail the website of the tip jar once it is created, save it, and only update the thumbnail again when an user requests so.

frisco2
Sr. Member
****
Offline Offline

Activity: 312
Merit: 265


View Profile
August 06, 2012, 05:03:01 PM
 #10

Thanks, I would give CutyCapt a shot, but a simple 3rd party service for thumbnails would be good as well.

Crosspass -- a simple way to send passwords, encryption keys, bitcoin addresses, etc.
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
August 06, 2012, 05:06:12 PM
 #11

http://phantomjs.org/ you can try this, i used to for on fly rendering and imaging
frisco2
Sr. Member
****
Offline Offline

Activity: 312
Merit: 265


View Profile
August 06, 2012, 05:14:09 PM
 #12

http://phantomjs.org/ you can try this, i used to for on fly rendering and imaging

Thanks for the tip, this is a great project!

Crosspass -- a simple way to send passwords, encryption keys, bitcoin addresses, etc.
gbl08ma
Sr. Member
****
Offline Offline

Activity: 306
Merit: 250


Donations: http://tny.im/nx


View Profile WWW
August 06, 2012, 07:13:23 PM
 #13

http://phantomjs.org/ you can try this, i used to for on fly rendering and imaging

Interesting.

For a 3rd party service, I use http://www.thumbalizr.com/ . For free users, it puts all thumbnails of new URLs in a queue (and then you need to wait until it is captured for the thumbnail to be available), and has a small "powered by thumbalizr" message on every thumbnail.

ageisp0lis (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0



View Profile WWW
August 07, 2012, 01:07:24 AM
Last edit: August 07, 2012, 03:41:42 AM by ageisp0lis
 #14

As far as third-party services go, there is also BitPixels.com which I recommend ...it is rather similar in that the thumbnail is not available right away, you have to request it first, but there's no watermark.

My xvfb + CutyCapt solution happens in two lines of code, takes 2-3 seconds for capture and conversion, only uses about 20mb of RAM, and ends up with 12k average for 200px width thumbnails. Variable width is certainly possible, this is a feature I could add. However, I don't know what to do about excess height. I could crop them, but there's something I actually like about it.

If there is a demand, which there seems to be, then I could easily create an API for instant thumbnail generation and retrieval.
@frisco2 I would have no problem with you using my service once I develop this capability. Are you still interested or do you need help implementing it on your own server? I could send you some information which might be of use.

@mc_lovin, yeah it's not perfect. the WebKit rendering in CutyCapt can be a little off. Thanks for testing.

@gweedo PhantomJS, nice... thanks for this info. I did some experimenting with PythonJS rasterization, it takes about 150-200% longer time than my current method, but the render is more accurate. I might contemplate switching to this.
frisco2
Sr. Member
****
Offline Offline

Activity: 312
Merit: 265


View Profile
August 07, 2012, 06:56:16 AM
 #15

@frisco2 I would have no problem with you using my service once I develop this capability. Are you still interested or do you need help implementing it on your own server? I could send you some information which might be of use.

I have to look at the 3rd party solutions that where mentioned here, as well as thinking if I should do it locally, before I can ask you to develop something specifically for me.

Crosspass -- a simple way to send passwords, encryption keys, bitcoin addresses, etc.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!