API — ImgBB

API — ImgBB Хостинг

. ADVERTISERS

We allow advertisers to display their advertisements and other information in certain areas of the Site, such as sidebar advertisements or banner advertisements. If you are an advertiser, you shall take full responsibility for any advertisements you place on the Site and any services provided on the Site or products sold through those advertisements.

We simply provide the space to place such advertisements, and we have no other relationship with advertisers.

. PRIVACY POLICY

We care about data privacy and security. Please review our Privacy Policy. By using the Site, you agree to be bound by our Privacy Policy, which is incorporated into these Terms of Use.

We respect the intellectual property rights of others. If you believe that any material available on or through the Site infringes upon any copyright you own or control, please immediately notify us using the contact information provided below (a «Notification»).

A copy of your Notification will be sent to the person who posted or stored the material addressed in the Notification. Please be advised that pursuant to applicable law you may be held liable for damages if you make material misrepresentations in a Notification.

. MODIFICATIONS AND INTERRUPTIONS

We reserve the right to change, modify, or remove the contents of the Site at any time or for any reason at our sole discretion without notice. However, we have no obligation to update any information on our Site. We also reserve the right to modify or discontinue all or part of the Site without notice at any time.

We cannot guarantee the Site will be available at all times. We may experience hardware, software, or other problems or need to perform maintenance related to the Site, resulting in interruptions, delays, or errors. We reserve the right to change, revise, update, suspend, discontinue, or otherwise modify the Site at any time or for any reason without notice to you.

You agree that we have no liability whatsoever for any loss, damage, or inconvenience caused by your inability to access or use the Site during any downtime or discontinuance of the Site. Nothing in these Terms of Use will be construed to obligate us to maintain and support the Site or to supply any corrections, updates, or releases in connection therewith.

. DISCLAIMER

THE SITE IS PROVIDED ON AN AS-IS AND AS-AVAILABLE BASIS. YOU AGREE THAT YOUR USE OF THE SITE AND OUR SERVICES WILL BE AT YOUR SOLE RISK. TO THE FULLEST EXTENT PERMITTED BY LAW, WE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, IN CONNECTION WITH THE SITE AND YOUR USE THEREOF, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.

WE MAKE NO WARRANTIES OR REPRESENTATIONS ABOUT THE ACCURACY OR COMPLETENESS OF THE SITE’S CONTENT OR THE CONTENT OF ANY WEBSITES LINKED TO THE SITE AND WE WILL ASSUME NO LIABILITY OR RESPONSIBILITY FOR ANY (1) ERRORS, MISTAKES, OR INACCURACIES OF CONTENT AND MATERIALS, (2)

PERSONAL INJURY OR PROPERTY DAMAGE, OF ANY NATURE WHATSOEVER, RESULTING FROM YOUR ACCESS TO AND USE OF THE SITE, (3) ANY UNAUTHORIZED ACCESS TO OR USE OF OUR SECURE SERVERS AND/OR ANY AND ALL PERSONAL INFORMATION AND/OR FINANCIAL INFORMATION STORED THEREIN, (4)

ANY INTERRUPTION OR CESSATION OF TRANSMISSION TO OR FROM THE SITE, (5) ANY BUGS, VIRUSES, TROJAN HORSES, OR THE LIKE WHICH MAY BE TRANSMITTED TO OR THROUGH THE SITE BY ANY THIRD PARTY, AND/OR (6) ANY ERRORS OR OMISSIONS IN ANY CONTENT AND MATERIALS OR FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF ANY CONTENT POSTED, TRANSMITTED, OR OTHERWISE MADE AVAILABLE VIA THE SITE.

WE DO NOT WARRANT, ENDORSE, GUARANTEE, OR ASSUME RESPONSIBILITY FOR ANY PRODUCT OR SERVICE ADVERTISED OR OFFERED BY A THIRD PARTY THROUGH THE SITE, ANY HYPERLINKED WEBSITE, OR ANY WEBSITE OR MOBILE APPLICATION FEATURED IN ANY BANNER OR OTHER ADVERTISING, AND WE WILL NOT BE A PARTY TO OR IN ANY WAY BE RESPONSIBLE FOR MONITORING ANY TRANSACTION BETWEEN YOU AND ANY THIRD-PARTY PROVIDERS OF PRODUCTS OR SERVICES.

. LIMITATIONS OF LIABILITY

IN NO EVENT WILL WE OR OUR DIRECTORS, EMPLOYEES, OR AGENTS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, SPECIAL, OR PUNITIVE DAMAGES, INCLUDING LOST PROFIT, LOST REVENUE, LOSS OF DATA, OR OTHER DAMAGES ARISING FROM YOUR USE OF THE SITE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

INTELLECTUAL PROPERTY RIGHTS

Unless otherwise indicated, the Site is our proprietary property and all source code, databases, functionality, software, website designs, audio, video, text, photographs, and graphics on the Site (collectively, the «Content») and the trademarks, service marks, and logos contained therein (the «Marks») are owned or controlled by us or licensed to us, and are protected by copyright and trademark laws and various other intellectual property rights and unfair competition laws of the United States, international copyright laws, and international conventions.

The Content and the Marks are provided on the Site «AS IS» for your information and personal use only. Except as expressly provided in these Terms of Use, no part of the Site and no Content or Marks may be copied, reproduced, aggregated, republished, uploaded, posted, publicly displayed, encoded, translated, transmitted, distributed, sold, licensed, or otherwise exploited for any commercial purpose whatsoever, without our express prior written permission.

Provided that you are eligible to use the Site, you are granted a limited license to access and use the Site and to download or print a copy of any portion of the Content to which you have properly gained access solely for your personal, non-commercial use. We reserve all rights not expressly granted to you in and to the Site, the Content and the Marks.

. ELECTRONIC COMMUNICATIONS, TRANSACTIONS, AND SIGNATURES

Visiting the Site, sending us emails, and completing online forms constitute electronic communications. You consent to receive electronic communications, and you agree that all agreements, notices, disclosures, and other communications we provide to you electronically, via email and on the Site, satisfy any legal requirement that such communication be in writing.

YOU HEREBY AGREE TO THE USE OF ELECTRONIC SIGNATURES, CONTRACTS, ORDERS, AND OTHER RECORDS, AND TO ELECTRONIC DELIVERY OF NOTICES, POLICIES, AND RECORDS OF TRANSACTIONS INITIATED OR COMPLETED BY US OR VIA THE SITE. You hereby waive any rights or requirements under any statutes, regulations, rules, ordinances, or other laws in any jurisdiction which require an original signature or delivery or retention of non-electronic records, or to payments or the granting of credits by any means other than electronic means.

. MISCELLANEOUS

These Terms of Use and any policies or operating rules posted by us on the Site or in respect to the Site constitute the entire agreement and understanding between you and us. Our failure to exercise or enforce any right or provision of these Terms of Use shall not operate as a waiver of such right or provision.

These Terms of Use operate to the fullest extent permissible by law. We may assign any or all of our rights and obligations to others at any time. We shall not be responsible or liable for any loss, damage, delay, or failure to act caused by any cause beyond our reasonable control.

If any provision or part of a provision of these Terms of Use is determined to be unlawful, void, or unenforceable, that provision or part of the provision is deemed severable from these Terms of Use and does not affect the validity and enforceability of any remaining provisions.

There is no joint venture, partnership, employment or agency relationship created between you and us as a result of these Terms of Use or use of the Site. You agree that these Terms of Use will not be construed against us by virtue of having drafted them.

PROHIBITED ACTIVITIES

You may not access or use the Site for any purpose other than that for which we make the Site available. The Site may not be used in connection with any commercial endeavors except those that are specifically endorsed or approved by us.

CONTRIBUTION LICENSE

By posting your Contributions to any part of the Site or making Contributions accessible to the Site by linking your account from the Site to any of your social networking accounts, you automatically grant, and you represent and warrant that you have the right to grant, to us an unrestricted, unlimited, irrevocable, perpetual, non-exclusive, transferable, royalty-free, fully-paid, worldwide right, and license to host, use, copy, reproduce, disclose, sell, resell, publish, broadcast, retitle, archive, store, cache, publicly perform, publicly display, reformat, translate, transmit, excerpt (in whole or in part), and distribute such Contributions (including, without limitation, your image and voice) for any purpose, commercial, advertising, or otherwise, and to prepare derivative works of, or incorporate into other works, such Contributions, and grant and authorize sublicenses of the foregoing. The use and distribution may occur in any media formats and through any media channels.

This license will apply to any form, media, or technology now known or hereafter developed, and includes our use of your name, company name, and franchise name, as applicable, and any of the trademarks, service marks, trade names, logos, and personal and commercial images you provide.

We do not assert any ownership over your Contributions. You retain full ownership of all of your Contributions and any intellectual property rights or other proprietary rights associated with your Contributions. We are not liable for any statements or representations in your Contributions provided by you in any area on the Site.

We have the right, in our sole and absolute discretion, (1) to edit, redact, or otherwise change any Contributions; (2) to re-categorize any Contributions to place them in more appropriate locations on the Site; and (3) to pre-screen or delete any Contributions at any time and for any reason, without notice. We have no obligation to monitor your Contributions.

SUBMISSIONS

You acknowledge and agree that any questions, comments, suggestions, ideas, feedback, or other information regarding the Site («Submissions») provided by you to us are non-confidential and shall become our sole property. We shall own exclusive rights, including all intellectual property rights, and shall be entitled to the unrestricted use and dissemination of these Submissions for any lawful purpose, commercial or otherwise, without acknowledgment or compensation to you.

You hereby waive all moral rights to any such Submissions, and you hereby warrant that any such Submissions are original with you or that you have the right to submit such Submissions. You agree there shall be no recourse against us for any alleged or actual infringement or misappropriation of any proprietary right in your Submissions.

Api response

API v1 responses display all the image uploaded information in JSON format.

JSON the response will have headers status codes to allow you to easily notice if the request was OK or not. It will also output the status properties.

Request method

API v1 calls can be done using the POST or GET request methods but since GET request are limited by the maximum allowed length of an URL you should prefer the POST request method.

История исследования

Недавно был представлен в целях общественной рекламы некоторый хостинг, вызвавший целый ряд неочевидных сомнений в своей респектабельности. Между тем, прозвучали идеи использования его как сервиса изображений для публикаций на Хабре. Возник контрвопрос: какой хостинг изображений, в частности, для Хабра, лучше использовать?

Сначала были поисследованы несколько хостингов на примере одной картинки. Обнаружилось, что удобства работы у разных хостингов разные, и результаты (по весу полной картинки, виду и весу превью) разные. Не видно, чтобы в этой «отрасли» был стандарт качества, все стремятся к удобству и останавливаются на разных рубежах.

Обзоров хостингов немного [1] (все они тоже важны как свидетельства их былой репутации), дают ответ только на часть вопросов. Поэтому было решено подойти к тестированию обстоятельнее, разобраться в том, что действительно нужно, по приоритетам, а чем можно пожертвовать.

Тут оказалось, что подходящих хостингов не 5-10, а в 4 раза больше (около 30), при том, что отсеяно ещё в 2 раза больше (40-60). Список хостингов не претендует на полноту и никак не рекомендует что-либо к использованию — он просто приводит данные о перечисленных хостингах, а данные говорят сами за себя.

Например, в дальнейшем неплохо провести нагрузочное тестирование каждого из хостингов [4], сделать попытки загрузки несколько раз в различные часы пик, мониторить доступность по каждому хостингу на протяжении месяцев. Это всё, конечно, сразу не делается. Воспользуемся самим фактом публикации, чтобы затем мониторить сервисы и наблюдать за качеством хранения.

Подготовка к тестированию

Чтобы определиться с качеством обработки изображений при сохранении на хостинге, возьмём несколько картинок разных типов и жанров. Два скриншотных PNG-8, один анимированный GIF, Два полутоновых JPG разного веса, одну очень большую png с текстами. Итого, 6 картинок.

Выбор только PNG-8 обусловлен тем, что PNG24 невыгоден по объёму для фото с полутонами (в большинстве случаев лучше выбрать JPG), а хостинги стремятся сохранить тип PNG скорее в PNG24, чем PNG-8, поэтому тестирование PNG-8 поможет выявить больше огрехов операций сохранения.

1-test-shotChromeExt.png — PNG-8, малый скриншот, 892 ч 1014, 37`452 байт;2-test-oak.jpg — малая фотография, 517 x 317, 41`844 байт;3-test-elfim.gif — тест анимированный аватар, 128 x 96, 58`697 байт;4-test-GerdArntz.

png — PNG-8, большой длинный скриншот, 1002 x 11`862, 1`099`246 байт;5-test-river.jpg — большая фотография, 1996 x 2649, 1`272`068 байт;6-test-austria-hungary.png — PNG-8, 2 color, широкая карта, 4463 x 3330, 828`732 байт;

Подробнее о сервисе

Япикс — сервис для загрузки изображений и видео без потери качества. Также здесь есть галерея: выбранные модераторами публикации пользователей.

Выделим основные преимущества:

  1. Бесплатный сервис, не требующий регистрации
  2. Галерея: модераторы выбирают самые забавные и милые публикации пользователей и помещают их на главную страницу сайта
  3. Гифки: на сайте доступны для скачивания более 17 000 гифок, рассортированных по категориям и размерам.

На сайт курса

Целевая ниша сервисов

Они не рассчитаны для показа мелких служебных рисунков оформления сайтов (некоторые разрешают), для этого используются обычные универсальные хостинги. Но они стараются гарантировать качество и надёжность показа важной для пользователя графической информации. По надёжности показа даже собственный хостинг для разработок будет проигрывать им в долговременности существования ссылки.

Нас интересуют хостинги с некоторыми жёсткими условиями. Например, есть обязательная авторизация — дальше можно не смотреть (потому что достаточно хостингов с возможностью анонимной публикации). Работа только с клиентской программой или неудобства без неё — то же самое.

Нет вариантов размера превью — большие основания выбрать другие альтернативы. Да и всякие ограничения бесплатной версии аккаунта не идут на пользу, потому что отвлекают на ненужный контроль: не перестанут ли показывать мои старые фото, если превышен какой-либо порог? Тем не менее, они достойны рассмотрения и выбора по вкусам.

Заключение

Сервисы для хранения изображений и видео пригодятся для владельцев сайтов и блогов, участников форумов и т.д. С их помощью вы можете бесплатно превращать картинки в код для вставки на сайт, создавать онлайн-альбомы, делать скриншоты и менять размер фото. Большинство сервисов — бесплатные, и многие не требуют регистрацию. Выбирайте удобный интерфейс и нужный функционал.

И не забудьте рассказать о плюсах выбранного вами сервиса!

Если вы использовали в своей работе один или несколько сервисов и есть, чем поделиться — напишите отзыв в комментариях. Помогите сделать выбор другим читателям!

Оцените статью
Хостинги