內容簡介
DPI,或稱每英寸點數,是攝影和印刷術語。基本上,屏幕上的像素不等同於列印文件上的點。如果你在一個 300 DPI 的印刷上使用 72 DPI 的圖片,則該印刷的解析度和細節會顯得不完美,並且可能產生像素化或模糊的影像。你也不能只是簡單地將圖片放大,因為細節是無法輕易地新增的。這是設計和印刷產業所面臨的一大問題,很多人都與客戶為正確上傳相片而較勁。任何來自網路的圖片都不夠用。因此,DPIorDIE 的出現解決了這個問題。
此外掛程式旨在基於圖像的 DPI(每英寸點數)篩選出一個特定類型用戶(「上傳者」)只能上傳的圖像。它讀取 EXIF 數據以獲取目前圖像的水平和垂直 DPI。它還可以增加所需的最大上傳尺寸。此外它可以將上傳的圖像無縫地上傳到 Dropbox 上的專用應用程式資料夾和位移路徑中。擴充套件與 WordPress 無縫集成,並且為使用者提供了翻譯。
注意:你實際上不需要在網站上創建一個新的使用者資料庫角色的類型;「Uploader(上傳者)」。該程式只是尋找上傳權限。稍後會有更多彈性的使用者功能權限允許/uploader/users/utilize,但它並不是必需的。Upoader 開啟使用者特權,只開放了上傳圖像的權限。
Dropbox 功能的設置非常簡單。點擊按鈕,在 Dropbox 上授權 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.
