It is currently Thu Dec 14, 2017 3:06 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Oct 29, 2014 5:45 pm 
Offline

Joined: Wed Oct 29, 2014 5:37 pm
Posts: 4
Hi everyone, I'm new using Admiror Gallery and I think it's very cool. I've just one problem. When I try to visualize vertical images, or rectangular images of different aspect ratio, these appear distorted to fit the frame. It's possible to set Admiror Gallery to adapt to the eight and leave the empty spaces black or in a worst case to crop the images?
Thanks everyone for your help!


Last edited by gugu000 on Sun Nov 02, 2014 12:47 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: SOLVED - Distorted image in gallery view
PostPosted: Wed Oct 29, 2014 5:45 pm 
Top  
PostPosted: Thu Oct 30, 2014 11:25 am 
Offline
User avatar

Joined: Thu Oct 16, 2014 9:59 am
Posts: 7
Location: D-96349 Neufang
Can you post a link to your gallery, to see what exactly you mean?


Top
 Profile  
 
PostPosted: Thu Oct 30, 2014 11:51 am 
Offline

Joined: Wed Oct 29, 2014 5:37 pm
Posts: 4
Thanks for your answer. The gallery is this one http://goo.gl/iXaJSN (i shortened the url) but you have to look for the first vertical image.
I would like the big image to be of the right aspect ratio and not to fit to the box. I hope to be clear, I'm here for every question.
Thanks again.


Top
 Profile  
 
PostPosted: Thu Oct 30, 2014 12:58 pm 
Offline
Contributor
Contributor
User avatar

Joined: Thu Oct 21, 2010 12:31 am
Posts: 217
Location: Essex, UK
Ah, well, I don't know if there's a way to stop it doing that from within the slideshow code, but a very easy way to solve it is to load all vertical images into your favourite image editing software and change the "Canvas Size" (NOT resize) to add extra space right and left.

So if all your horizontal (landscape) images are 600 high x 800 wide, and your vertical (portrait) images are 800 high by 600 wide you would first resize the vertical images so that the height is 600 and the width 450. Then change the Canvas size to 600 high and 800 wide giving you a border down either side.

this then matches your horizontal images.

You can do this VERY quickly and easily if you know how to use scripts within your image editing program. And even if you don't it's a quick 2-step process anyway.


Top
 Profile  
 
PostPosted: Thu Oct 30, 2014 1:43 pm 
Offline

Joined: Wed Oct 29, 2014 5:37 pm
Posts: 4
I understand.. :( This afternoon i'll try to change the visualization within the code, i think to implement an if statement to chose the wider dimension (landscape or portrait) and then apply this dimension to the photo or something like that :idea: . I'll keep you updated, so if I succeed doing that someone else could find it useful.
A good day and good work to everyone


Top
 Profile  
 
 Post subject: Re: Distorted image in gallery view
PostPosted: Thu Oct 30, 2014 1:43 pm 
Top  
PostPosted: Fri Oct 31, 2014 12:54 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
You can try to edit CSS, check this post for details: viewtopic.php?f=19&t=444#p1801
But also you could remove this part ffrom template index.php:
Code:
   AG_jQuery("#AG_'.$AG->getGalleryID().' div#photos .panel-content img").css({width:"'.$AG->params['frameWidth'].'px",height:"'.$AG->params['frameHeight'].'px"});

This will remove the autofit option.

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Sun Nov 02, 2014 12:46 pm 
Offline

Joined: Wed Oct 29, 2014 5:37 pm
Posts: 4
Great thankyou very much, I solved the problem with the css solution. I added:
Code:
.panel-content {
   text-align:center;
}

.panel-content img[style] {
   width:auto!important;
}

to the file: administrator/components/com_admirorgallery/templates/default/css/template.css
It just worked.
Thanks again


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group