This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var vips = require('../index'); | |
var imagemagick = require("imagemagick"); | |
var gm = require("gm"); | |
var epeg = require("epeg"); | |
var async = require("async"); | |
var assert = require("assert"); | |
var Benchmark = require("benchmark"); | |
var cv = require("opencv"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For a company such as GettyImages with a complex image workflows involving ingestion of images, | |
preprocessing of images, generating asset packs of various image sizes and finally distributing | |
those images to 1000's of customers each expecting image sizes of various dimensions all in a | |
matter of seconds if not minutes; having an extremely fast and reliable image processing system | |
is critical to its business. While there are countless image processing tools and frameworks out | |
there that can be used for image processing, following benchmark is to determine the fastest resizer tool. | |
For this benchmark the following most widely used image processing libraries were considered. | |
Please note that resizing is one of the most widely performed operation while distributing images | |
to customers at Gettyimages, hence the following benchmark is based on image resizing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q) How would you detect users who manipulate photos rating by creating fake accounts? | |
Couple of ways to detect same users: | |
- drop a unique cookie on the user system which will help determine if different users came from the same computer. A post processing service can be setup to check different users from same computer. | |
- limit the number of ratings that an IP or a user can perform in set period of time | |
- to avoid automatic bot based rating, have the rating button to be a randomly lazy enabled. | |
Q) What would you change on 500px.com and why? | |
An image is worth nothing if it cannot be discovered. 500px thou serving top quality images has a very minimal search capability. Image discovery is probably the most important feature that I would recommend for 500px. Image discovery features such as: | |
- search image by dominany color | |
- search image by number of faces (face detection, gender detection, age estimation etc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="og:url" content="http://www.photos.com/photo/481771125"> | |
<meta property="og:image" content="http://cache1.asset-cache.net/xr/481771125.jpg?v=1&c=IWSAsset&k=3&d=77BFBA49EF878921CC759DF4EBAC47D064EB5B867756A507549AB8612950FDC68F1BB6B36089CF16A55A1E4F32AD3138&b=MjI="> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Akka.Actor; | |
using Akka.Event; | |
namespace SampleActor.Actors | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor.Actor | |
import scala.concurrent.Future | |
import dispatch._ | |
import dispatch.Defaults.executor | |
import akka.actor.OneForOneStrategy | |
import akka.actor.SupervisorStrategy.Escalate | |
import org.openimaj.image.{ MBFImage, ImageUtilities } | |
import java.io.ByteArrayInputStream | |
import com.p.models.{ RequestAnalysis, HttpException } | |
import java.net.ConnectException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_rmq_version { | |
rmq_version=$(sudo rabbitmqctl status | grep "rabbit," | cut -d',' -f3 | cut -d'}' -f1 | tr -d '"') | |
echo && echo " Version = $rmq_version" && echo | |
} | |
function stop_rmq { | |
echo "Stopping RabbitMQ..." | |
sudo service rabbitmq-server stop | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ exiftool.exe -xmp:all -g1 -json ../457180206.jpg | |
[{ | |
"SourceFile": "../457180206.jpg", | |
"XMP-x": { | |
"XMPToolkit": "XMP Core 4.1.1" | |
}, | |
"XMP-photoshop": { | |
"CaptionWriter": "/ma", | |
"DateCreated": "2014:11:11 23:10:00-05:00", | |
"AuthorsPosition": "Stringer", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST http://localhost:9200/_cluster/nodes/_local/_shutdown | |
wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.1.1/elasticsearch-2.1.1.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch | |
rm -rf /usr/share/elasticsearch | |
mkdir /usr/share/elasticsearch | |
rsync -a elasticsearch/ /usr/share/elasticsearch | |
rm -rf /usr/share/elasticsearch/config | |
chmod -R 777 /usr/share/elasticsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"masterId": "450000116", | |
"contentId": "3a0ac8ba-0b1a-b945-9a3b-014cb8d3a14e", | |
"keyName": "EWSSubmission", | |
"transformedMetadata": { | |
"Caption": "TOKYO, JAPAN - MARCH 31: A business man walks under cherry blossom trees in full bloom in a park, on March 31, 2015 in Tokyo, Japan. During cherry blossom season thousands of people gather across Japan to practice 'Hanami' (Flower-viewing parties) the centuries old tradition of picnicking under a blooming Sakura tree. Hanami is said to have started during the Nara Period and still today people gather wherever cherry blossom trees are blooming and enjoy food and drinks often well into the night. As cherry blossom season coincides with the beginning of the new school year and the beginning of the business year many hanami parties are also used by companies and organizations to welcome new employees and bring staff together. The Cherry blossom season only lasts for an average of two weekends and the \\cherry blossom front\\ is forecast each year by the Ja |
OlderNewer