Advertisement:

Author Topic: Regenerate images in osclass 3.7.1  (Read 1051 times)

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Regenerate images in osclass 3.7.1
« on: May 25, 2017, 01:53:06 pm »
Hello,

In admin , I unchecked the "keep the original images" and until now my images were 640x480 px.

Now If I change them to 800x600px and hit regenerate images, what will happen? The 640x480 ones will be resized to 800x600?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Regenerate images in osclass 3.7.1
« Reply #1 on: May 26, 2017, 12:19:41 pm »
Yes, you will resize existing largest image files (640x480), which is not advised, because the quality will be downgraded and you'll end up with larger files for no real benefit (most browsers have zoom functionality which will achieve ~ same effect).

You can change the size for all new items (or the ones that will be edited and updated with new images), though.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Regenerate images in osclass 3.7.1
« Reply #2 on: May 26, 2017, 09:50:53 pm »
That's what I thought. Thank you.

What about the max size of the image (without the pre-resize plugin)? Is there a max size that osclass can handle?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Regenerate images in osclass 3.7.1
« Reply #3 on: May 26, 2017, 10:59:05 pm »
If there's still the original files for some of them, then you will get "better" resolution as it will use the original file when available.

About your second question, there's no limit on how big an image could be in Osclass, it's limited by your server resources (RAM mostly). Using imagick instead of GD will take less memory (so the image could be bigger)

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Regenerate images in osclass 3.7.1
« Reply #4 on: May 27, 2017, 12:14:11 am »
If there's still the original files for some of them, then you will get "better" resolution as it will use the original file when available.

About your second question, there's no limit on how big an image could be in Osclass, it's limited by your server resources (RAM mostly). Using imagick instead of GD will take less memory (so the image could be bigger)

Thank you. I don't have imagemagick on my server, but I asked the hosting providers if they can install it.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Regenerate images in osclass 3.7.1
« Reply #5 on: May 27, 2017, 12:29:18 am »
Even if you have original files from some of the items, but not all of them, I strongly suggest to avoid regeneration, because images will pass not only upscaling (which sucks big time in GD), but also 2nd compression pass for other items, which will additionally downgrade existing images quality.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Regenerate images in osclass 3.7.1
« Reply #6 on: May 27, 2017, 12:52:16 am »
Even if you have original files from some of the items, but not all of them, I strongly suggest to avoid regeneration, because images will pass not only upscaling (which sucks big time in GD), but also 2nd compression pass for other items, which will additionally downgrade existing images quality.

I won't do it. That's why I wanted more opinions.
I don't keep original files.
Thank you.