pixelstunde / joomla-plg-pxlcompressor

PXLCompressor is a joomla plugin meant for resizing and compressing images uploaded with the media manager on the fly.
http://pixelstun.de
30 stars 4 forks source link

Feature request: Add option apply only on... #5

Open johanpeters opened 5 years ago

johanpeters commented 5 years ago

Add a option to configure the plugin.

  1. default all images, all article groups, All Image extentions
  2. no images, no article groups, no extentions

configure options to determine if the plugin should run or not. depending on

pixelstunde commented 5 years ago

Sorry, but this won't/can't be implemented the way you want it at the current state of development. When uploading an image with the media component, I have no information about the context, where an image was uploaded from (article or whatsoever).'

Also adding those other options is quite complex and I don't really see a need for this (feel free to submit a PR).

What I might be adding (your first two ideas):

johanpeters commented 4 years ago

skip image processing special folder (or folders) would be create.. for background images for example that need special sizes etc..

johanpeters commented 4 years ago

otherwise define

  1. default resolutions
  2. define folder resolutions

i use logical folders inside /images to sort images.. for example /images/articles /images/slideshow /images/logos /images/partners

Depanding on the purpuse of the image i need other resolution.. on upload in that folder.. if defined then only that resolutions.. otherwise default resolutions.. if possible also define type of rescale..

example /images/articles 400|200|Intro 600|300|full /images/partners 150|150|partner /images/slideshow 1024}768|slideshow