该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

DPIorDIE

描述

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.