Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Images deformed  (Read 4533 times)

0 Members and 1 Guest are viewing this topic.

Kalenia

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Images deformed
« on: August 02, 2009, 07:05:21 pm »

When I specify height and width of the thumbnails, images are deformed. I was wondering how to create effect like on this site, when images are cut. I was trying to use "overflow: hidden", but it doesn't work as it supposed to. Any ideas? Thanks in advance.
My code:
Code: [Select]
.image {
display: block;
width:76px;
height:76px;
line-height: 76px;
        overflow: hidden;
}
Logged

Nibbler

  • Guest
Re: Images deformed
« Reply #1 on: August 02, 2009, 07:25:43 pm »

Create your own custom thumbnails that are cropped as you want. How is this related to cpmFetch?
Logged

Kalenia

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Images deformed
« Reply #2 on: August 02, 2009, 07:58:18 pm »

Because I want to use it in my gallery
Code: [Select]
<?php
  
include "./../gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./../gallery/cpmfetch/cpmfetch_config.php");  
  
$objCpm->cpm_viewLastAddedMedia(2,2,array("imagestyle" => "image"));
  
$objCpm->cpm_close();
?>

As I said when height and width are specified images are deformed...
Logged

Nibbler

  • Guest
Re: Images deformed
« Reply #3 on: August 02, 2009, 09:18:24 pm »

They will be deformed if they don't match the actual size of the thumbnails. You need to create thumbs that are cropped the way you want them.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.