Force create resize-version on smaller-than-resize originals.

godric

Joined: 2008-01-21
Posts: 2
Posted: Wed, 2008-05-07 09:45

Hi All,

I've googled, and I've checked the forum, but have not yet found a sane solution to this problem.

It's known from web records that if:

1) The orginal-size is smaller than the resize-target-size,
2) then no Resized-Version will be created,
3) then user without [core]view-original will be FORCED to look at tiny thumbnails.

Someone on this forum said this is expected normal behavior, but I disagree. To my reasoning, Normal Behavior to this situation should be:

1) Original-size smaller than resize-target-size,
2) Then original is COPIED (without upsampling) AS the resized-version (derivative),
3) Then, user without [core]view-original CAN look at the Resized-Version (original's exact copy).

With this arrangement, user would not have been LEFT OUT and be forced to see thumbnails whenever originals are smaller than resize-targets.

I've looked at the code and try to find the spot of hacking, but unfortunately it takes me lots of time sifting through them.

Would somebody who is familiar with the code please help in pointing me to the spot where the "Decision" of whether or not to create resized-version be made? Then I can speed this modding up a bit?

Given that I need to restrict the user from viewing the originals, but I do need the originals for internal use.

Thanks in advance, your kind help is much appreciated.

Godric

Login or register to post comments
deepsingh

Joined: 2008-02-19
Posts: 16
Posted: Mon, 2008-05-12 04:52

I think you should try sizelimit module for this, it works as you desire.
download from here http://codex.gallery2.org/Gallery2:Modules

Login or register to post comments
godric

Joined: 2008-01-21
Posts: 2
Posted: Tue, 2008-05-13 10:50

Hi,

Thanks and appreciate your help very much.

You've saved my day!

Regards,
Godric

Login or register to post comments