Author Topic: Project: Thumbnails in exact size, but exact proportion (Cutoff)  (Read 7617 times)

0 Members and 1 Guest are viewing this topic.

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
One thing i don't like about 4images is that there is no "cut_off" option for the thumbnails. What does that mean? Here you are:

For example you upload these 5 images and you defined 100px as maximal width and 100px as maximum hight. So the thumbnails look like this:



So that doesn't look so good, agree? For example on the mainpage in "New Images", or in the search that can be very bad if you have a good design on you page.
So, i would look better this way:



Agreed? Yes of course. So in this example we specified the exact size of 80X100. This is called a "thumbnail cutoff" and many major cms/image gallery systems have that function.
It just looks better.

What do you think?

I have all the codes we need, buti just can't integrate it, if Kai, Mawenzi or some other more experienced is willing to help me on that on i will appreciate it.






Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #1 on: January 18, 2007, 03:26:49 PM »
So that doesn't look so good, agree? For example on the mainpage in "New Images", or in the search that can be very bad if you have a good design on you page.

1. ... I don't agree (in my way) ...  :mrgreen:
2. ... I solved this problem on my site with a fixed table "td_height" for thumbnails in my different thumbnail_bit.html ...
3. ... thus the design on my page (index, category, search, featured, random, ...) is not destroyed by a different height of thumbnails ...
4. ... and on uniform thubnails you can't preview the image format, and that is important for me ...

I have all the codes we need, buti just can't integrate it, if Kai, Mawenzi or some other more experienced is willing to help me on that on i will appreciate it.

1. ... but it would be an interesting extension for 4images ...  :wink:
2. ... the necessary code for these thumbnail function is one ...
3. ... the other one is to integrate the different adjusting variants in the ACP ...
4. ... because some one would like to have also horizontal thumbnails ( in my case e.g. ) ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #2 on: January 18, 2007, 05:18:55 PM »
So, lets make it?

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #3 on: January 25, 2007, 09:39:45 PM »
It's done, if anyone is interested PM me for details.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #4 on: January 26, 2007, 12:10:10 AM »
It's done, if anyone is interested PM me for details.
I just did  :wink:

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #5 on: January 26, 2007, 12:30:24 AM »
Hi,

thats one mod i've searched a long time, and i doenst had enough time and fun to code it by myself. :D

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #6 on: January 26, 2007, 02:24:17 PM »
trez please post it here :)

I've also send you a pm

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #7 on: January 26, 2007, 04:59:21 PM »
Well, i've got several PM's, didn't expect so much interest, the code works for 1.7.1, give me some time to make it work for 1.7.4 and i will post it here.
There is still a security issue i have to resolve (that's the reason why i don't posted even the 1.7.1 code in public)

As i said, bookmark the thread, i will post the mod in a few more days.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #8 on: January 26, 2007, 11:50:00 PM »
i will post the mod in a few more days.
I will be waiting   :D

Offline nikitaspj

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Project: Thumbnails in exact size, but exact proportion (Cutoff)
« Reply #9 on: January 25, 2008, 11:17:50 PM »
I think CeJay is waiting for a year !

What happened with that code ?.
Is it 1.7.4 ready ??

Please somebody answer !!!