You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#108501 First redim is not renamed

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 17 August 2021 12:50 BST

semaphore
Hi,
We have set 3 resize options
  • 740*420
  • 350*200
  • 1100*420


We want each time a photo is uploaded (and when it's possible depend the original size of course) these file must be generated and renamed and the original not keeped. If the upload and resize work like a charm, we have two issues for coding templates :

  • the first one was already asked in an other old post : we need to pre-named the suffix in order to set for example _hp, _intro, _full for the 3 resize options. We use it in our template code for now we emulate this with the default suffix based on dim _350-200 but if we slightly change the dim it will break all our template codes :-/
  • the other issu is that the first redim option 740*420 don't generated any default suffix it just use the original name. Again we can manage this but it's not that comfortable for putting coding convention.


these options could profit to J!3 and 4 ;-)

Thanks for your hardwork.

Ryan
The first set of resize dimensions will always be applied to the original image, and will not rename it. To leave the original image intact, simply remove the first set of resize dimensions. The remaining sets will resize the original image, creating copies named either with the supplied suffix or dimensions.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

semaphore
mmmh we have add an empty resize before our 3 resized option and it works we have our 3 resized and renamed files AND the original even if we don't it. Our goal was to get only the resized and renamed files but it's better than nothing even if the way to get it is not that easy at the first glance ;-)

And for the prefilled suffix option : any idea fo the future ?

Ryan
And for the prefilled suffix option : any idea fo the future ?


I am looking into some additions to the resize parameter options, which would include a Label for the resize set, and could possibly include a custom Suffix.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.