- Posts: 2
- Thank you received: 0
Picture Quality
-
pedrokraft
Inactive member -
Topic Author
- New Member
-
Less
More
11 years 2 months ago #35117
by pedrokraft
Picture Quality was created by pedrokraft
i guess, the scroller takes the pictures from the "resized" folder inside the "products" folder. these thumbs are smaller then those in the scroller, so we have actually poor image quality in the scroller because the module is larger then the thumbs.
Is there a workaround?
Is there a workaround?
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 2 months ago #35130
by ivan.milic
Replied by ivan.milic on topic Picture Quality
Open:
modules\mod_vmscroller\helper.php
around line 395:
if ($show_product_name) {
$html .= '<span class="VMTitle'.$this->slideid.'" style="color: '.$this->titlecolor.'; text-align: '.$this->titlealign.';">'.'<a href="'. $product_link .'" title="'.$pr->product_name.'"><img src="'.JURI::base(true).'/'.$image->file_url_thumb.'" class="VMImg'.$this->slideid.'" style="width: '.$this->imageSize.';" alt="'.$pr->product_name.'" /><br/>'.$pr->product_name.'</a></span>';
} else {
$html .= '<span class="VMTitle'.$this->slideid.'">'.'<a href="'. $product_link .'" title=""><img src="'.JURI::base(true).'/'.$image->file_url_thumb.'" class="VMImg'.$this->slideid.'" style="width: '.$this->imageSize.';" alt="'.$pr->product_name.'" /></a></span>';
}
you see in two places :
$image->file_url_thumb
you could change that to :
$image->file_url
modules\mod_vmscroller\helper.php
around line 395:
if ($show_product_name) {
$html .= '<span class="VMTitle'.$this->slideid.'" style="color: '.$this->titlecolor.'; text-align: '.$this->titlealign.';">'.'<a href="'. $product_link .'" title="'.$pr->product_name.'"><img src="'.JURI::base(true).'/'.$image->file_url_thumb.'" class="VMImg'.$this->slideid.'" style="width: '.$this->imageSize.';" alt="'.$pr->product_name.'" /><br/>'.$pr->product_name.'</a></span>';
} else {
$html .= '<span class="VMTitle'.$this->slideid.'">'.'<a href="'. $product_link .'" title=""><img src="'.JURI::base(true).'/'.$image->file_url_thumb.'" class="VMImg'.$this->slideid.'" style="width: '.$this->imageSize.';" alt="'.$pr->product_name.'" /></a></span>';
}
you see in two places :
$image->file_url_thumb
you could change that to :
$image->file_url
Please Log in to join the conversation.
-
pedrokraft
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
11 years 1 month ago #35780
by pedrokraft
Replied by pedrokraft on topic Picture Quality
Thank you.
But there is another problem i would like to have solved; the pictures must have fixed proportions or they are to long for the scroller window so text disappeares... Is there a trick how to handle this?
But there is another problem i would like to have solved; the pictures must have fixed proportions or they are to long for the scroller window so text disappeares... Is there a trick how to handle this?
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 1 month ago #35788
by ivan.milic
Replied by ivan.milic on topic Picture Quality
Maybe putting this css at bottom of template_css.css:
IMG.VMImg1{
max-width:100%;
max-height:150px; /*change this if you want*/
width:auto!important;
height:auto!important;
}
IMG.VMImg1{
max-width:100%;
max-height:150px; /*change this if you want*/
width:auto!important;
height:auto!important;
}
Please Log in to join the conversation.
Time to create page: 0.173 seconds