Posts

Fixing wrong extensions

Image
Around Thursday, April 7, 2016 5PM UTC time, I was adding ICO support to backend and testing ICO uploads when I noticed that every url upload returns jpg as the image extension for every image. this is the minor issue for users since modern browsers doesn't care about the image extensions, but there was a little issue since the image delivery system gets the image content type by the image extension. A fix was quickly applied as I was familiar with the function that misbehaved. so the uploads after should be fine. But what about the images uploaded before the fix? It was already night here, so I deiced to add the fix for those images the next day. since I will be touching the main scripts and raw images that powers the site and I don't want mess any of that. Fast forward to today, I just shipped the extension correction to the system, but it will occur in batches. It there so that I can monitor if any thing goes wrong. The extension correction will update the database...

Lowering the Server Load Part 2

Don't use PHP for real time events. That's what we learned, when we switched to real time image views. At the time memory load was high on the php script that added the views, but it didn't seemed to be a big issue, until there were tons of image views to sort through. So as a fix we switched to Nodejs to sort real time images. we are beginning to love the asynchronous events here at BeeIMG. The JS script was pretty easy to write and the memory load was lowered by more than 75% The next memory hog is the MySQL server and we are already using memory friendly redis-server for some parts of the site. We hope to move the whole image views part that gets updated frequently to redis by the end of the year. So we can server more images, fast. there are some more news to come, so stay tuned.

Codes: Time Elpased

As promised here are some codes powering BeeIMG. this php function is very useful to the users, we use it almost everywhere. It converts time to easy human readable format. when the second string is set to false, it will return the first 10 seconds of the time as 'Just now'. this was later added to calculate time of the real time image views. to use it time elapsed($time) or time elapsed($time,true)

Updates: Imgur Oauth

As we said in the twitter oauth post, twitter was the last addition to the ouath system for a while, to keep the system simple. Now you can login and register using your imgur account. In the future we hope to add reddit, but it will take some time to implement. The current ouath login system is a complete mess and some times you will be thrown to a error here and there. As the twitter email limitation was recently removed, now you can register using your twittter account. for the registered members we added an ouath account settings page, which you can find in the dashboard. We also fixed the albums system completely. also if you are BeeIMG Firefox addon user, make sure to update to the newest version. For more updates at real time time follow our twitter feed at https://twitter.com/BeeIMG Thank you for reading.

Updated Image View Page

Well, I thought of revealing another new thing before this, but it's not ready yet. this is one of the many new improvements done under the hood this year. so lets get to it. The last time we redid the image view was 2 years(forever) ago. that page is so old, it doesn't work now. this new page has more improvements on the way. The image is now held in a back background and its big now. the image title has moved to below the image. also the image descriptions are back. we are hoping to add tags too. beside the title is the edit button. if the image is captured using a camera, a small camera button will appear beside the edit button and when clicked, it will show you things like the model of the camera, ISO, aperture shutter speed, etc. there are 2 full screen buttons on the page and first one is on the image, to view image in full screen and the other is on the new stats bar. (checkout the stats bar in full screen because its so cool) and now the stats bar features a real time t...

Why use BeeIMG? & How it Works (2016)

This post is now outdated. an updated post is available at https://blog.beeimg.com/2019/04/why-use-beeimg-how-it-works-2019.html Nowadays there are tons and tons of image hosting sites to choose from. Most of them are powered with chevereto (A Premium script), scripts available at codecanyon (Premium scripts) and using scripts that are available for free. Newbies/Webmasters who want to earn money buys and put these scripts in a server and offer the service for free. Only a handful of sites are coded from scratch and we are proud to say that we are one of them. As the bandwidth usage is very high for image hosting site, most of the sites uses cloudflare to cache the images and save their own bandwidth. but we use cloudflare to only serve the site content, not the images. How are we different form others? we can start with the image serving process. It uses PHP & nginx to serve you the image other than linking to it directly. It's like a virtual image and the best thing i...

BeeIMG in 2015

Happy New Year All! Hope you earned the new year badge. (time zones doesn't matter) Go back to how we looked at the feb 9 2015. Nothing much changed right? In this year we have hosted more than 18,000 images, have served close to 71 million image views, using 16 TB of bandwidth. According to Google analytics we had 36,979 page views in 2014 and most users are from USA followed by Russia. 2014 Dec 2015 Dec Increase Images 11,000 18,000 +7,000 Image views 65 million 71 million +6 million Bandwidth 12 TB 16 TB +4 TB Looking back at 2015, the growth was decreased. but we added IPv6 and HTTP2 support and upgraded our upload page. In the backend we moved from apache to lighttpd and nginx in order lower the server load. When switching to nginx we added support for real time image views too. also we upgraded to the very new &...