-
AuthorPosts
-
timtecsa Friend
timtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
March 31, 2014 at 2:55 pm #196321When I uploaded a GIF image from Joomla 1.5 + Teline II site it looked like this in the JA News Featured module.
despite looking like this in Teline II JA FP module
Notice the difference? Saving it as a JPEG fixed the problem, but why does the Teline II JA FP module resize and display it correctly but the the Teline IV JA News Featured module does not? Resizing of GIFs code?? In the article itself, at native size, it looked fine before I changed it to a JPEG.
- chavan Friend
chavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
March 31, 2014 at 4:49 pm #528815Thanks, Chavan.
I spoke too soon. I put the .gif back but …. look at it in Chrome browser http://217.199.187.59/tecsa.com/joomla2
It looks OK in Firefox.
See same GIF in Teline II, Joomla 1.5, below, from http://www.globalprintmonitor.info/ in Chrome browser.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
April 1, 2014 at 2:47 am #528865The problem is with Gif image and I have made a photoshop edit and here is the modified file attached
Please make upload this to your site and check it. Also make a back up of the existing image.
-
1 user says Thank You to chavan for this useful post
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 1, 2014 at 11:19 am #528979Thanks for the photoshop edit. I did much the same by saving the GIF as a JPEG which solved the problem in Chrome. However, what puzzles me is why the GIF resizing code (zoom in) in Teline II front page module (mod_janews_fp 1.3.1) works fine but the same feature in JA News Featured module does not.
Any thoughts? Re-visit/lift the code 🙂
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
April 1, 2014 at 11:55 am #528986No the GIF image you had some transparency circle around the image, while resizing the transparent spaces turned to black. While you are saving it as jpg , the transparency disappears. since jpg does not accept transparency. so jpg was working fine for you.
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 1, 2014 at 1:01 pm #528997The simple “save as JPEG” made a cleaner image than the photoshop one, so I’ve used that.
The same GIF is zoomed up here.http://www.globalprintmonitor.info/
The screen grab, below, is from Chrome browser. I don’t see any transparency issue.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
April 1, 2014 at 2:11 pm #529005The image you mentioned in the http://www.globalprintmonitor.info/ is not resized by php code. It is an actual image http://www.ingede.com/icons/25years.gif
But the one on the this site http://217.199.187.59/tecsa.com/joomla2/index.php/en/ is resized . This is the resize image http://217.199.187.59/tecsa.com/joomla2/images/resized/images/j2xml/48/25years_161_109.jpg
While resizing the issue occurred. The issue was with the Resizing a Transparent GIF image.
Hope this explains
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 1, 2014 at 4:05 pm #529023<em>@Chavan 419280 wrote:</em><blockquote>The image you mentioned in the http://www.globalprintmonitor.info/ is not resized by php code. It is an actual image http://www.ingede.com/icons/25years.gif
But the one on the this site http://217.199.187.59/tecsa.com/joomla2/index.php/en/ is resized . This is the resize image http://217.199.187.59/tecsa.com/joomla2/images/resized/images/j2xml/48/25years_161_109.jpg
While resizing the issue occurred. The issue was with the Resizing a Transparent GIF image.
Hope this explains</blockquote>
The source image “25years.gif” is exactly the same in both cases. However, whatever method of interpolation of the transparent gif image is used on the homepage of http://www.globalprintmonitor.info (mod_janews_fp 1.3.1)on Teline II is superior to whatever method is used in JA Featured News on Teline IV. i.e. one looks much better than the other when scaled up (interpolated/re-sampled, etc.).
good GIF interpolation versus bad Both are derived from “25years.gif”
Resized means interpolated/resampled etc? Same thing in the end? Only difference is which algorithms are used?
-
chavan Friend
chavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
April 2, 2014 at 1:59 am #529092yes it is re-sampled, while re-sampling the image went wrong like this.
The reason it went black was when a GIF image has a transparent background, the re-sampling made the transparent spaces to black. that’s it.
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 2, 2014 at 4:52 pm #529231Yes. Thanks for the technical explanation.
However, it’s a pity that the sampling for transparent GIFs is less effective on Teline IV than on Teline II. -
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 2 voices, and was last updated by timtecsa 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
GIF image resizing in JA News Featured module
Viewing 11 posts - 1 through 11 (of 11 total)