這個外掛並未在最新的 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.