Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Описание

DPI, or Dots Per Inch, is a photography and printing term. Essentially a pixel on any screen does not equal to a dot on a printed document. The resolution and detail of a print wouldn’t look good if you used a 72 DPI upload on a 300 DPI print. The end result is either pixelated or blurry images. You can’t just scale an image up either, detail can’t just be easily made. It’s a big problem in the design and print industries. A lot of people fight with their clients to upload the correct images. Any image from the web just won’t do. DPIorDIE to the rescue.

This plugin was designed to filter out images based on the DPI of an image only a specific type of user can upload, «Uploader». It reads the EXIF data to get the horizontal and vertical DPI for now. It can also increase the max upload size to your desired choosing. There’s also the ability to upload said images to Dropbox in a dedicated app folder and offset path. It seamlessly integrates with WordPress and I’ve done the work for people to give translations.

NOTE: You don’t actually have to make a new user profile on the site with the role type; «Uploader». It’s just looking for uploading privileges. Later there will be more allowance for flexibility in it’s user capabilities, but it’s unnecessary. The Uploader role was designed to allow a user reduced privileges to a site, not giving them anything but uploading capabilities.

The Dropbox functionality is easy to setup. Click the button, authorize DPIorDIE on Dropbox, get the code they give you, punch it in, and save. The authorization token code will be generated on save. The code lasts indefinitely, they just don’t expire. The offset path will generate the required folders or directories. All duplicates get renamed and aren’t rejected.

Установка

  1. Upload the plugin files to the /wp-content/plugins/dpiordie directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->DIEorDIE screen to configure the plugin
  4. Create required user profiles.
  5. Profit?

Часто задаваемые вопросы

Is it free and or open source?

It’s fully free and totally open source. https://github.com/Halsys/DPIorDIE
I would love it if you bought me a [coffee](https://www.paypal.me/CoryNil I crave the speedy juice) however!

Can it upload anywhere else?

Not yet but I’m planning on it. Currently FTP, Apple Cloud, and OneDrive is on the table.

How do you get the DPI?

It looks for the EXIF data on a file and checks for the horizontal and vertical DPI. Later version might do a bit a math to find out the DPI.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«DPIorDIE» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «DPIorDIE» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0

  • First major version. Does everything advertised.