J-BusinessDirectory - crop pictures?

Support Forum

 
 

 

Is it possible to see crop images?
it looks stupid from when someone uploads edgewise images as logo.

Great, when all the images have the same size, we would be in crop

5 replies

Hi,


Currently we only resize images when they exceed a certain size.
There is not functionality for cropping images.

I have manage to modify the template files and use the image thumbs and a background images and handled the cropping via css like so:

.class{

background-size:cover;

width:desired size;

height: desired size:

}

 

in your template file's (div, a or span) insert class="class" and an attribute: style="background-image: url(php image code here) no-repeat;"

 

that should give you more control over those uploads

in which file?

Can you show me the whole string?

hi Arold Jacques

can you answer me?

soryy sir, have been out of sync. here you go.

You have two options one if you want to use the img tag:

<img src="...." class="img-hull"/>

.slider-item .slider-content .img-hull {
    height: 200px;
    min-width: 100%;
    object-fit: cover;
}
 
the key is the new [object-fit] "research it!"
 
Second: in the JBusiness-Latest Mod default.php I modified the <A> tag to look like this by adding a style background image.
 
<div class="ca-icon">
<a href="leave href alone" title="Leave title alone" style="background-image:url(<?php echo JURI::root().PICTURES_PATH.$company->logoLocation ?>);" class="class">
</a>
 
CSS:

.ca-icon .class{background-size:cover;

width:200px;

height: 150px:

}

 
 
 

6 Item(s)

Show per page