Jump to content

New image upload options - client side vs server side resize


SamC
 Share

Recommended Posts

Just noticed a few new options have sprung up in v3.0.82 when I checked out my image field.

image-resizing.jpg

Now I only wanted to control the height but the use client-side says:

When using client-side resize, please specify both max width <em>and</em> max height in the fields above, or max megapixels in the field below.

Am I to presume I was using server-side resizing before updating PW? I didn't choose client-side, this is how it looked when I just checked out the field. Also, if I haven't set a max width, is server side resizing the fallback or does non occur?

Does client-side mean the original will not be on the server?

I don't want to set a max width because it may be the case that the height ends up less than 1200px.

Bit confused with this one. Any more info about these options would be awesome, thanks.

  • Like 1
Link to comment
Share on other sites

6 minutes ago, kongondo said:

Not an answer, but just a clarification. Client-side image resize has been around since 3.0.63 :-)

Maybe the associated blog post  answers your queries?

Ah, thanks for the link.

My 3.0.41 install doesn't have these options though.

Link to comment
Share on other sites

8 hours ago, SamC said:

I didn't choose client-side, this is how it looked when I just checked out the field.

Doesn't sound good to me, at least I would not like to encounter such an issue. I hope I will remember to check the image fields when I need to upgrade some old sites. If it happens automatically that is quite a breaking change :(

Link to comment
Share on other sites

11 hours ago, SamC said:

I didn't choose client-side, this is how it looked when I just checked out the field. Also, if I haven't set a max width, is server side resizing the fallback or does non occur?

Mine are all empty, except for the 90% JPEG quality (which on its own will not do anything). So, yeah, strange. In my case though, these are new installs; I didn't upgrade.

Link to comment
Share on other sites

Ok so I read through this, client side seems a pretty good idea. What isn't so good is that it does require width and height settings whereas I used to just set the max height. I don't care about the width so much (no panoramic photos going on here).

I'm uploading stock images so the sizes do vary. I'm not 100% sure how this works tbh.

As it stands, I set the max-height to 1200 and use server side resize. I just uploaded an image of dimensions 1920x1280 and the resulting image on the server is 1800x1200.

So I guess I could just set the max-width to some large value like 4000 (width will always be within this boundary) so the height will always end up as 1200.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...