test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • cgc0202 Friend
    #159944

    Hello,

    I am not too familiar with the layout of Teline IV. I want to change the default sizes of the images that appear in the category page. How is this done?

    Related questions:
    Is it possible to customize the defaul size by category?
    Or, better still can it simply resize proportionaly?

    Proportional resizing (which was possible at some point) can be critical where there are great variations in sizes.

    For example, a panoramic image would lose its meaning to be shown as a much smaller image, if the resize is a square, or something quite different from the original “width-to-height” ratio.

    This is also very true with vertical images.

    I understand the reason for a “fixed” default size, from an “easthetic perspective”. But, in many instances, the essence and power of an image to convey a message, mood, theme, and more may be lost if it is resized significantly different from its original “height-to-width” ratio.

    Thus, I would prefer proportional resizing to fixed default resizing. At some point, this was an option in earlier versions of Teline. I am not sure if this option is retained in Teline IV

    Cornelio

    Sherlock Friend
    #376005

    Dear cgc0202,

    The images on the blog layout are resized via the plg_thumbnail,in the plugin back-end you can >> under the Display Settings panel you can enter the Leading Images Width,Leading Images Height,Intro Images Width ,Intro Images height as you wanted.

    I hope that would help !

    cgc0202 Friend
    #376489

    <em>@dathq 220558 wrote:</em><blockquote>Dear cgc0202,

    The images on the blog layout are resized via the plg_thumbnail,in the plugin back-end you can >> under the Display Settings panel you can enter the Leading Images Width,Leading Images Height,Intro Images Width ,Intro Images height as you wanted.

    I hope that would help !</blockquote>

    Thanks dathq,

    It helps partially, but let me rephrase the issue into several questions:

    1. Is it possible to achieve different sizes (WxH) for different categories?
    2. Or better still: Is it possible to fix the width, and the height will resize proportionately, depending on the orignal W to H ratio of the image?

    My preference would be the second option. Images with extreme W to H ratio I.e., vertical 5×10, or horizontal, 100×30) would look better in option too.

    By fixing the width (of the resized images that shows in the category pages), the aesthetic presentation of images, because of the same fixed width for all and also the correct proportional resizing avoids “funny mirror images” (like they show in old “circus mirrors” or special lenses).

    Option 2 used to be possible with the script of the earlier original Teline. I am not sure if this option is possible also with the one used in Teline IV Joomla 1.6; or the script can be modified slightly to allow Option 2.

    I hope I explained it better. Thanks.

    Cornelio

    thuanlq Friend
    #376541

    Hi Cornelio,

    1. Because the ja thumbnail is content plugin, so it can’t to achieve different sizes for different categories.
    2. You can make as following:
    – open the file “plg_jathumbnail.xml” in the folder “plugins/content/plg_jathumbnail/”, then define new field


    <param
    name="use_ratio"
    type="radio"
    default="1"
    label="Use ratio"
    description="Use ratio desc">
    <option value="1">Yes</option>
    <option value="0">No</option>
    </param>

    – Copy file “jaimage.php” of any ja extensions which used this file to resize image ( exm: ja bulletin used jaimage to resize ),
    paste this file into folder “plugins/content/plg_jathumbnail/”.
    – Open file “plg_jathumbnail.php” in the folder “plugins/content/’, then replace function


    function processImage ( $img, $width, $height, $crop=1 ) {
    ..
    }

    to


    function processImage ( $img, $width, $height, $crop=1 ) {
    if(!$img) return '';
    $img = str_replace(JURI::base(),'',$img);
    $img = rawurldecode($img);
    require_once (dirname(__FILE__).DS.'jaimage.php');
    $aspect = $this->pluginParams->get( 'use_ratio', '1' );
    $aspect = $aspect == '1'?true:false;
    if (preg_match('/https?:///', $img)) return $img;
    $jaimage = JAImage::getInstance();
    $imagesurl = "";
    if( $jaimage->sourceExited($image) )
    $imagesurl = $jaimage->resize( $img, $width, $height, $crop, $aspect );
    //$imagesurl = (file_exists(JPATH_SITE .DS.$img)) ? $this->jaResize($img,$width,$height,$crop) : '' ;
    return $imagesurl;
    }

    Good luck,

    cgc0202 Friend
    #376831

    Thanks thuanlq,

    Many of my stuff include both extreem horizontal and extreme vertical images. They would not lend to a generic common resized format. I will try this in after a day or two because I am in the middle of creating a generic layout based on Teline IV.

    I am excited about the general layout of Teline IV and committed myself to the Joomla 1.6 version (instead of the 1.5), even if the TEIV-J1.6 version has quite a number of bugs and shortcomings still that needed to be addressed.

    For example, I thought the revised concept layout I had was ready, since most of the parts were in place. Then, suddenly last night, I got “error messages” when I click on many of the linked articles among some of clones of the JA Featured News module. Oddly there were a few of the “dummy articles” that would show properly, when clicked from the same clone of the JA Featured News module. Surprisingly, all the links from one of the cloned modules seems to be working properly. And, more surprising, all “dummy articles” links work properly in the regular format of all the category introductory pages.

    I will post this as a separate thread, but I am focusing on this problem now since the “JA News Featured” module is central in the Front Page, and I cloned it also as part of key sections of the site.

    The above problem arising is one of the reasons why I cannot try your suggested solution relevaant to this thread, immediately. And, it will have to wait until I have an idea what is causing the problem I outlined above.

    I do hope you understand. And I apppreciate your effort for helping resolve some issues.

    Cornelio

    <em>@thuanlq 221279 wrote:</em><blockquote>Hi Cornelio,

    1. Because the ja thumbnail is content plugin, so it can’t to achieve different sizes for different categories.
    2. You can make as following:
    – open the file “plg_jathumbnail.xml” in the folder “plugins/content/plg_jathumbnail/”, then define new field


    <param
    name="use_ratio"
    type="radio"
    default="1"
    label="Use ratio"
    description="Use ratio desc">
    <option value="1">Yes</option>
    <option value="0">No</option>
    </param>

    – Copy file “jaimage.php” of any ja extensions which used this file to resize image ( exm: ja bulletin used jaimage to resize ),
    paste this file into folder “plugins/content/plg_jathumbnail/”.
    – Open file “plg_jathumbnail.php” in the folder “plugins/content/’, then replace function


    function processImage ( $img, $width, $height, $crop=1 ) {
    ..
    }

    to


    function processImage ( $img, $width, $height, $crop=1 ) {
    if(!$img) return '';
    $img = str_replace(JURI::base(),'',$img);
    $img = rawurldecode($img);
    require_once (dirname(__FILE__).DS.'jaimage.php');
    $aspect = $this->pluginParams->get( 'use_ratio', '1' );
    $aspect = $aspect == '1'?true:false;
    if (preg_match('/https?:///', $img)) return $img;
    $jaimage = JAImage::getInstance();
    $imagesurl = "";
    if( $jaimage->sourceExited($image) )
    $imagesurl = $jaimage->resize( $img, $width, $height, $crop, $aspect );
    //$imagesurl = (file_exists(JPATH_SITE .DS.$img)) ? $this->jaResize($img,$width,$height,$crop) : '' ;
    return $imagesurl;
    }

    Good luck,</blockquote>

    thuanlq Friend
    #377054

    Hi Cornelio,

    Please send me some website information via ticket ID QMP-449-25894, i need debug your problem to give you solution.

    Thanks,

    cgc0202 Friend
    #377228

    Thanks thuanlq,

    I am preparing images right now, for the test site. I should be able to send you the link to the site tomorrow or this weekend.

    Cornelio

    <em>@thuanlq 221960 wrote:</em><blockquote>Hi Cornelio,

    Please send me some website information via ticket ID QMP-449-25894, i need debug your problem to give you solution.

    Thanks,</blockquote>

    thuanlq Friend
    #377269

    Hi Cornelio,

    I will check directly on your site, when you provide me some information.

    Thanks

    cgc0202 Friend
    #377780

    Hi thuanlq,

    Still preparing the Sandbox site. As I was doing it this weekend, I had to unpublish the thumbnail plugin. Otherwise, if the thumbnail plugin is published — the default placement of the images are placed at the top right or left, and not in the portion of the article, where I placed it. And, it resizes the full image into a smaller image as specified in the plugin.

    Cornelio

    <em>@thuanlq 222249 wrote:</em><blockquote>Hi Cornelio,

    I will check directly on your site, when you provide me some information.

    Thanks</blockquote>

    thuanlq Friend
    #377854

    Hi Cornelio,

    The ja thumbnail plugin will get all images in article’s content, create thumbnail and set it into position where you config on configuration page, default it display at the top right or left. You can config for it show at the first image position as following:
    – Go to admin > Extensions > Plug-in manager > Thumbnail for joomla content.
    – Set params value as:
    Position = First image
    Image align = auto

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 3 voices, and was last updated by  thuanlq 13 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum