Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] v2.9 - Thumbs

v2.9 - Thumbs 02 Jul 2016 10:24 #14117

  • pbianco
  • pbianco's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Hi,
I have downloaded v2.9 of a project created with previous versions of JCook.
The problem I see is that I see a new image is created, but with the same size than the original one.
In previous versions, different thumbs were created according to sizes defined in the different views.
My issue is that I am managing a project with few images but very big in size, therefore it is downloading a big image instead that a thumb.

Can you, please, give a look at this?
Thanks and regards
The administrator has disabled public write access.

v2.9 - Thumbs 04 Jul 2016 08:21 #14120

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Really strange. For me it works like a charm.
Can you tell me your PHP configuration / version ?

The only problem I had before is with the hidden files. Maybe your server do not allow it.
Now I changed the thumb prefix. It uses an underscore and it is much better I think.


Maybe a problem in your project config.
Can you tell me wich Project / Table / Layout

Is it a forked project ?
Coding is now a piece of cake
The administrator has disabled public write access.

v2.9 - Thumbs 04 Jul 2016 20:46 #14128

  • pbianco
  • pbianco's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Hi,
I have forked the component, but the same issue happens with the JCook component with no fork (in my local staging I have reinstalled the component from scratch).
The new file is created with an initial _, but its size is bigger than the original.... Then, I do not see the other thumbs which were previously created, one for every size of display.
The administrator has disabled public write access.

v2.9 - Thumbs 04 Jul 2016 20:52 #14129

  • pbianco
  • pbianco's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Project Club4000 - Table Foto_calendario - View Fotocalendario.
I have just uploaded a picture to check
The administrator has disabled public write access.

v2.9 - Thumbs 04 Jul 2016 21:17 #14131

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
The files previously created are with a point prefix. They was hidden files.

Today I upgraded and changed for UNDERSCORE.

But this is abdnormal the files are bigger for you.

This new version is not stable enough as I can see.
But tomorrow everything will be fixed.

Thank you for all your reviews. I do not have many different servers configurations to achieve propers tests at the moment.
(Work in progress)
Coding is now a piece of cake
The administrator has disabled public write access.

v2.9 - Thumbs 05 Jul 2016 13:32 #14139

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 278
  • Thank you received: 35
  • Karma: 22
+1,
I am testing this new version, and i confirm the point about the resized file that is > than original file.
The administrator has disabled public write access.

v2.9 - Thumbs 05 Jul 2016 21:41 #14151

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Fixed.

It should be much better now.

Do you know why ?
Because for PNG, the quality represents a compression between 0 to 9,
Instead for JPEG, the quality is from 0 to 100 %

So only the PNG was heavy files.

In Cook, the HelperFile class abstracts it for "Quality", from 0 > 100 %
Default is 75% for JPG
Instead for PNG, the compression is set to 8 per default, almost the maximum.

So I don't know if this conversion is usefull, because 8 for PNG does not represent 75%, so the default is not the same percentage.
But this is because the compression is different.

Anyways, at the moment, the builder do not propose you that parameter, so it stays at default, but it is handled by Jdom and by the helper.

As well as rotations, filters, and so on. More to come in future, but you can already play a lot with your images.
Not thanks to me, but thanks to Joomla!

Enjoy the night. For those who live in UTC+1
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.127 seconds

Get Started