フロントエンドチームの @urahiroshi です。Mercari Advent Calendar 2018 12日目を担当します。 今年の8月から12月にかけて,メルカリ・メルペイのフロントエンドチーム有志で「超速!Webページ速度改善ガイド」の社内輪読会を行いました。 この本の中で,「推測するな,計測せよ」という言葉が紹介されていますが,今回の記事は,輪読会で学んだことのまとめとして,Chrome DevToolsを用いてメルカリWebのパフォーマンス計測と簡単な分析を行ったものです。 なお,現在メルカリWebのアーキテクチャを刷新するための開発が進んでいるため,ここで計測したパフォーマンスの値は大幅に変化していく可能性が高いです。アーキテクチャの刷新後に振り返って見られる楽しみが増えることも、この記事を書いた目的の一つです。 計測方法,環境 計測はGoogle Chrome 71.
こんにちは、アプリケーション基盤チームの青木(@a_o_k_i_n_g)です。 一般的な Web アプリケーションがそうであるように、サイボウズのグループウェアにも画像をサムネイルで表示する機能があります。サイボウズでは日々数万件やそれ以上のサムネイルを生成しており、それらは全て ImageMagick によって生成されていました。 そこで得た知見はこちらの記事で公開されています。 blog.cybozu.io しかし現在、サイボウズから ImageMagick は消え去りました。その理由と、我々が取った代替手段について紹介します。 ImageMagick を外した理由 言うまでもなく ImageMagick は優秀なツールで、画像変換に関する何らかのサービスやツールを作る場合には採用の第一候補になることでしょう。あらゆる画像フォーマットに対応し、出力画像をきめ細かに制御できる膨大なオプシ
2019年5月17日 CSS はるか6年前に書いた記事「少しのコードで実装可能な20のCSS小技集」の第二弾です!(スパンながっ)簡単なコードで素敵な効果が得られる小技をダダっと紹介してみます。前回に引き続き、初心者さんからベテランさんまで参考にしてみてください! ↑私が10年以上利用している会計ソフト! 目次 画像を丸く表示 1本線のテーブル 1本線の水平線 線色を指定しなくても文字色と同一色になる 複数の背景画像 背景画像のサイズ Webフォントを使う 画像をモノクロやセピアにする リストマーカーの色を変更 グラデーション グラデーションボーダー フラットだけど立体的ボタン 画像をぼかす レスポンシブに対応した動画 要素を真ん中に配置 カンマで分けたリスト 文字を縦書き フォーカスすると伸びるテキストボックス iOSでボタンのスタイルをリセット 線のオフセット設定 HTML・CSSの全
NVIDIAが「この画像をあの画像っぽく」できる高速で高品質なAIアルゴリズム「FastPhotoStyle」を公開2018.03.28 12:4531,133 たもり 本物かと見間違うクオリティ。 以前取り上げた雪原を草原に変えるAdobeのアルゴリズムなど、画風変換のアルゴリズムは何も真新しいものではありません。しかし、NVIDIAが発表したAIアルゴリズム「FastPhotoStyle」は、既存のアルゴリズムより各段に速い処理スピードを誇り、出来上がった画像のクオリティも高いのです。 FastPhotoStyleを開発したのは、 NVIDIAとカリフォルニア・マーセッド大学の科学者チーム。先月、「A Closed-form Solution to Photorealistic Image Stylization」という論文を発表しました。 PetaPixelによれば、従来のこういった
前回、「高品質のままJPEG画像のファイルサイズを圧縮したいなら、Photoshopの書き出しを使おう」というJPEG画像圧縮の記事を書きました。Photoshopを利用している人は、サードパーティー製のソフトを利用せずに高圧縮で高品質な画像データが書き出せるという内容です。脱JPEGmini として、それなりに反響がありました。 そんな便利なPhotoshopによる書き出し処理ですが、画像の一括処理が通常ではできません。1枚ごと画像を読み込んで1枚ごと書き出しする必要があります。(個別にアクションを作ってバッチ処理する方法もありますが、重くて話にならないです。)JPEGminiのようにドラッグすれば、自動的に処理してくれるソフトはないものか・・・(劣化がひどくないやつ)と探してみたところ、FirefoxのMozilla社が開発している「mozjpeg」ベースで作られた無料ソフトの使い勝手
人生の中で誰にとっても忘れられない人物なのが“初体験”のお相手だろう。思い出だけの存在であるのかどうかはその後の人生次第だが、この初めてのお相手は女性にとってはなお重要な意味を持っているというのだが……。新たな研究結果が報告された。 【その他の画像はコチラ→http://tocana.jp/2016/03/post_9129.html】 ■母親の過去の“性の遍歴”が子どもに影響を及ぼす 人間の遺伝とはどうやら一筋縄ではいかないようだ。夫婦の“共同作業”であり“愛の結晶”である子どもがもし、父親に似ても似つかない風貌だったとしたなら……。妻の浮気を疑ったとしても、現代であれば最終的にDNA鑑定ですべては判明する。正真正銘の夫婦の子どもであっても、父親にまったく似ていないことなどあるのだろうか。 それはじゅうぶんあり得ることであるという研究が、2014年にオーストラリアのニューサウスウェールズ
7月19日、TBS系列にて放送された「生き物にサンキュー&世界の怖い夜 合体3時間SP」。その中で紹介された心霊写真が問題視されている。【BuzzFeed Japan / 播磨谷拓巳】 ロンドンブーツの田村淳さんがMCを務める人気の心霊番組。19日放送回では、青森県に住む“イタコ”を紹介したり、霊が出るとされる廃ホテルをタレントが訪れた。 問題視されているのは番組終盤の「心霊写真」のコーナーだ。 “とある展望台を訪れたときに撮影された写真”として紹介された写真には、男性3名が写っており、その後ろには女性のような顔が写っていた。 番組はこれを霊とし、心霊研究家・池田武央氏はこの場所で事故死した女性の霊と説明。この世に強い未練を残しており、すぐにお焚き上げすることを勧めた。 しかし、放送直後、Twitter上で写真に写っている男性たちの友人らから「合成です!」「テレビの闇」など指摘する声があが
「カメラに何げなくピースのサインをするだけで、指紋が出回ってしまう」。指紋の盗撮防止技術を開発した国立情報学研究所の越前功教授は、こう警鐘を鳴らす。 顔と手を一緒に撮影した写真をネットに掲示すると、個人と指紋を特定される恐れがある。大量に画像が出回る著名人は特に狙われる危険性が高い。自分で投稿しなくても、他人が撮影した写真に知らないうちに写り込むリスクもある。 また、スマートフォンの認証には指紋のほか、顔の画像、模様が人によって異なる目の虹彩なども利用されている。こうした生体情報は行政機関や企業の入退室管理にも利用されている。個人の生体情報を盗み取るには従来、その人に接近して撮影する必要があった。 だが、生体情報がネット上に出回るようになったことで、犯罪者にとってハードルは大きく下がった。国立情報学研究所の実験では3メートルの距離で撮影した画像でも指紋が読み取れることが判明しており、
世界1位は「モンスト」1,300億円、「ポケモンGO」は788億円。世界のスマホゲーム収益ランキング2016(1〜11月) 調査会社「SuperData」さんが出していた、「スマホゲーム市場2016」のレポートを、画像1枚で簡単にメモしておきます。参考までにどうぞ。 ■世界スマホゲーム収益ランキング(2016年1〜11月までの「ほぼ2016」) 1位:モンスト 1,300億円 2位:クラクラ 1,200億円 3位:クラロワ 1,100億円 4位:ゲーム・オブ・ウォー 910億円 5位:モバスト 900億円 ?位:ポケモンGO 788億円(トップ10には入ってそう?) 「ポケモンGO」は公開が7月なので、実質ほぼ5ヶ月での売上。ピーク時(8月)の売上は203億円だったと。(わりと重課金しにくいモデルなのに) 「モンスト」は去年と比べると2倍くらいに伸びて1位に。2015年は674億円で世界5
カードやパネルをレンガ状に配置し、ドラッグして配置をアニメーションで変更、ソートやフィルタリング機能も可能なグリッドレイアウトが簡単に実装できるスクリプトを紹介します。 マウスで操作しても、タッチデバイスで操作しても、非常に快適です。 Muuri Muuri -GitHub Muuriのデモ Muuriの使い方 Muuriのデモ デモはモダンブラウザ、IE9+でご覧ください。スマホやタブレットでも動作します。 ※スマホだと各パネルが大きいので、操作しにくいかも。
Outbrainという会社の「WEBコンテンツの見出し(タイトル)」について、15万記事を調査したデータが、おもしろかったので簡単にメモ。 1)8ワードのタイトルがクリック率が最高に。 記事タイトルの長さとしては、8ワード(英語で)のものが一番クリック率が高かった。平均よりも21%高かった。 2)サムネイル画像を入れるとクリック率+27% ほとんどのメディアはやっている気がするが、サムネイル画像を記事タイトルに加えると、クリック率を27%も高めることができる。 たぶん、ソーシャルのOGP画像とかもそうだし、あとはスマートニュースとかにも、多かれ少なかれ、当てはまる話だと思われる。 3)偶数よりも奇数のほうが20%も吸引力がある 偶数よりも奇数のほうがクリック率が20%も高まる。たとえば「デザイン上達8のコツ」よりも「デザイン上達7のコツ」にすべきだと。 感覚的には「3・5・7」あたりの数値
硬貨を入れてハンドルを回せば商品が出てくる「ガチャ」。成田空港に大量設置された画像が、ツイッター上で話題になっています。訪日外国人が帰国する際、両替できなかった日本の硬貨を持ち帰るぐらいなら、ガチャを回してお土産にしてもらおうという狙いのようです。「あまった小銭をオモチャに!」を合言葉に、外国人ウケしそうな171台を設置したのはタカラトミーアーツ。詳しく話を聞きました。 【画像】和装のフチ子、漬物、人力車、土下座、こけし… 日本らしさ重視のガチャ。計171台の概観を紹介 第2旅客ターミナル本館の地下1階に設置された171台のガチャ。「JAPANESE CAPSULE TOY GACHA」と書かれた説明書きがあり、「あまった小銭をオモチャに!」「なぜか日本で売れてます」といった文字が、日本語だけでなく英語や中国語などで書かれています。 タカラトミーアーツによると、設置したのは今年の7月29
By Blogtrepreneur インターネット広告の仕組みをハックして広告動画を自動で再生しまくることで、最大で1日に6億円の収入を不正に得ているという過去に例のない詐欺システム「Methbot」の存在が、セキュリティ関連企業「White Ops」による追跡調査から明らかになっています。 Methbot | White Ops http://www.whiteops.com/methbot 'Biggest Ad Fraud Ever': Hackers Make $5M A Day By Faking 300M Video Views http://www.forbes.com/sites/thomasbrewster/2016/12/20/methbot-biggest-ad-fraud-busted/#6b1439514ca8 Methbotの仕組みをごく簡単にいうと、「botを
<?php require 'vendor/autoload.php'; class MyImagine { public static function factory() { if (class_exists('Imagick')) { return new Imagine\Imagick\Imagine(); } if (class_exists('Gmagick')) { return new Imagine\Gmagick\Imagine(); } if (function_exists('gd_info')) { return new Imagine\Gd\Imagine(); } throw new Exception('Not found dependency modules'); } } $path = '/path/to/sample_320_240.png'; $im
Nintendo Switch 2: Everything we know about the coming release
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く