473,597 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scaleable image issues on Linux

Hello all,

A question relating to http://www.entrust-systems.net/

Just for a change I have run into a problem that seems to be OS
specific rather than browser specific - the box image that is acting as
a faux border for the main text block shows nasty image effects on the
outside when using either Firefox or Konqueror on Suse Linux. This
image is set to resize with the browser window (and hence the text) and
this seems to be what triggers the rendering problem.

No particular image problem in Firefox or IE on windows, it renders as
expected.

So two questions. Firstly is this problem appearing elsewhere in other
browsers or other operating systems? I have limited access to different
test platforms so any help would be very welcome. Secondly has anyone
hit this issue before and managed to come up with a solution?

Thanks, Nic

p.s. if anyone knows of a better way to handle :hover menus on IE than
the control hack I am using please let me know.

May 23 '06 #1
6 1979
On 23 May 2006 13:17:01 -0700 ni*******@maila ndnews.com wrote:

| A question relating to http://www.entrust-systems.net/
|
| Just for a change I have run into a problem that seems to be OS
| specific rather than browser specific - the box image that is acting as
| a faux border for the main text block shows nasty image effects on the
| outside when using either Firefox or Konqueror on Suse Linux. This
| image is set to resize with the browser window (and hence the text) and
| this seems to be what triggers the rendering problem.
|
| No particular image problem in Firefox or IE on windows, it renders as
| expected.
|
| So two questions. Firstly is this problem appearing elsewhere in other
| browsers or other operating systems? I have limited access to different
| test platforms so any help would be very welcome. Secondly has anyone
| hit this issue before and managed to come up with a solution?

The GIF file is corrupt. The size of the image is specified as 1048x734
whereas the size of the only image block contained is 1046x732 with a 1px
offset in vertical and horizontal. There is a local color table specified,
but no global color table. Therefore, no global background color is
specified. That leaves some pixels undefined. The process of rendering
actual pixels could very well never be placing any color values in some of
these locations, leaving them at whatever bit patterns existed in that spot
in memory by some previous usage.

Based on the comment block in the GIF file, some component of Microsoft
Office was used to build this. Seems to be buggy (no big surprise ... they
may even be doing this and compensating for it in their own GIF decoder).
I suggest rebuilding this image all over again with another tool. That or
try exporting in PNG format instead to see if that helps.

Here's what I see in the beginning of that GIF file:

000000: 47 49 46 38 39 61
GIF version 89a

000006: 18 04
screen width = 1048

000008: de 02
screen height = 734

000010: 77
0....... global color table is absent
..111.... color resolution bits = 7+1 (256 values)
.....0... global color table is not sorted
......111 global color table size = 3*2^(7+1) (256 entries, 768 bytes)

000011: 00
background color index = 0

000012: 31
aspect ratio factor = 49 (ratio is 1.000000)

000013: 21
extension introducer:

000014: fe 1a
comment extension, block size = 26
000016: Software: Micros
000032: oft Office
comment extension, block size = 0

000043: 21
extension introducer:

000044: f9 04
graphics control extension, block size = 4 (valid size)

000046: 01
000..... reserved value = 0
....000.. disposal method = 0 (no disposal specified, no action required)
.......0. user input flag = no
........1 transparent color flag = present

000047: 00 00
delay time = 0 (0.00 secs)

000049: 00
transparent color index = 0

000050: 00
empty data block terminator

000051: 2c
image separator:

000052: 01 00
image left position = 1

000054: 01 00
image top position = 1

000056: 16 04
image width = 1046

000058: dc 02
image height = 732

000060: 81
1....... local color table is present
..0...... image is not interlaced
...0..... local color table is not sorted
......001 local color table size = 3*2^(1+1) (4 entries, 12 bytes)

local color table detail: (# indicates BG and TRANS color)
000061: 00 00 00#(000) 00 00 80 (001) 99 cc 99 (002) b0 77 b0 (003)

000073: 02
LZW minimum code size = 2

000074: ff
image data block size = 255
000075: 94 8f a9 cb ed 0f a3 9c b4 da 8b b3 de bc fb 0f 86 e2 f8 0d
000095: e6 89 a6 ea ca b6 ee 0b c7 f2 4c d7 f6 8d e7 fa ce f7 fe 0f
000115: 0c 0a 87 3f 92 f1 88 4c 2a 97 cc a6 f3 09 8d 86 88 d4 aa f5
000135: 8a cd 6a b7 dc ae f7 1b 94 8a c7 e4 b2 f9 8c 4e ab 41 e0 b6
000155: fb 0d 8f cb e7 f4 3a 70 8d cf eb f7 fc be 7f 6d 17 28 38 48
000175: 58 68 78 68 f7 a7 b8 c8 d8 e8 f8 d8 87 28 39 49 59 69 79 69
000195: 08 a9 b9 c9 d9 e9 f9 09 81 29 3a 4a 5a 6a 7a 0a 03 aa ba ca
000215: da ea 2a 86 1a 2b 3b 4b 5b db f6 8a 9b ab bb cb eb 60 fb 0b
000235: 1c 2c 3c ec d2 6b 7c 8c 9c ec 48 cc dc ec fc 6c a9 2c 3d 4d
000255: 5d 0d 05 8d 9d ad bd ed 65 ed fd 0d 1e 6e c1 4d 5e 6e 7e 6e
000275: 23 ae be ce fe 8d fe 0e 1f 5f de 4e 5f 6f 9f 2b 9f af bf 0f
000295: 7c ef ff 0f f0 11 bf 81 04 0b 5e 0a 88 30 a1 c2 34 06 1b 3a
000315: 7c 48 87 02 80 89 14 2b 5a bc 88 31 a3 c6 8d

[skipping 13 data blocks]

003658: 7a
image data block size = 122
003659: 2a aa a3 4a 0d a0 6a aa a7 8a aa a9 aa aa ac 46 aa ad ea aa
003679: bc b0 aa b1 2a ab b3 4a ab 7c fa aa b7 8a ab ab 50 ab bb ca
003699: ab bd ea ab 57 9a ab c1 2a ac 90 f0 ab c5 6a ac c7 8a ac d1
003719: 36 ac cb ca ac 7d 90 ac cf 0a ad d1 ca ab cd 4a ad d5 8a 06
003739: d2 8a ad d9 aa ad 9d 6a ad dd ea ad 50 b0 ad e1 2a ae e3 ea
003759: a7 df 6a ae e7 7a 04 e4 aa ae eb ca ae 68 8a ae ef 0a af 1d
003779: 50 00

003781: 00
image data block size = 0

003782: 3b
trailer - end of GIF file

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 24 '06 #2
On 23 May 2006 13:17:01 -0700 ni*******@maila ndnews.com wrote:

| A question relating to http://www.entrust-systems.net/

Your email address, "ni*******@mail andnews.com", does not work:

<ni*******@mail andnews.com>: host mail.mailandnew s.com[216.51.232.133] said:
550 Mailbox unavailable <ni*******@mail andnews.com> (in reply to RCPT TO
command)

Who knows how many private replies you've missed.
| So two questions. Firstly is this problem appearing elsewhere in other
| browsers or other operating systems? I have limited access to different
| test platforms so any help would be very welcome. Secondly has anyone
| hit this issue before and managed to come up with a solution?

I might suggest doing this purely in HTML and CSS, rather than using an
image at all (especially as big as that image is). My first (untested)
thought is a DIV with green background and 2 extra 50% wide 50% high DIVs
within and positioned to upper right and lower left for the other colors.
Then a big DIV box in the middle.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 24 '06 #3
On 23 May 2006 13:17:01 -0700 ni*******@maila ndnews.com wrote:

| Just for a change I have run into a problem that seems to be OS
| specific rather than browser specific - the box image that is acting as
| a faux border for the main text block shows nasty image effects on the
| outside when using either Firefox or Konqueror on Suse Linux. This
| image is set to resize with the browser window (and hence the text) and
| this seems to be what triggers the rendering problem.

Actually, doing this without an image is easy with tables. But it's
the kind of thing that would drive CSS advocates nuts. I'll let them
show examples of doing it "the right way". So I won't show how to do
it in tables ... unless no one shows how to do it in CSS.
May 25 '06 #4
I did try to do it without an image and I was in danger of losing my
sanity over it.

It seems like it should be achievable but in practice the results were
horrible after trying it several ways. Maybe a complete CSS guru could
pull it off but I can't. I could do it with tables but on balance I'd
rather use an image - it degrades more gracefully.

Sorry about the email address: I resorted to that email address a long
time ago after using a "proper" email address on usenet that promptly
got spammed to death. It used to be a valid webmail address, perhaps
they have pulled it due to excessive spam - I have not been very active
on usenet in a while.
---
Nic

May 26 '06 #5
A little application of the GIMP has fixed it on my local test version,
so I can put that on the public site next time I do an upload.
As you suggest it was generated by an MS Office application and
anything running on windows seems to handle it just fine - I only
noticed the bug when I tested on a different platform.

Thanks.

--
Nic

May 26 '06 #6
On 26 May 2006 02:51:29 -0700 ni*******@maila ndnews.com wrote:

| I did try to do it without an image and I was in danger of losing my
| sanity over it.
|
| It seems like it should be achievable but in practice the results were
| horrible after trying it several ways. Maybe a complete CSS guru could
| pull it off but I can't. I could do it with tables but on balance I'd
| rather use an image - it degrades more gracefully.

I don't think it would take a guru. But if I get some time, I might go
back and see your page again and give it a shot.

As to tables, I've not run into a degrade issue. Back when people who
promoted newer web standards were coining the phrase "degrade gracefully"
to refer to relatively unstyled results on older browsers when using
newer standards, my table based pages were displaying UN-degraded on the
major older browsers (because that's where I developed things like that).
| Sorry about the email address: I resorted to that email address a long
| time ago after using a "proper" email address on usenet that promptly
| got spammed to death. It used to be a valid webmail address, perhaps
| they have pulled it due to excessive spam - I have not been very active
| on usenet in a while.

I'm running relatively spam-free, despite my email address being seen
all over the place for years. I use a few DNS blacklists, a blacklist
of my own that is domain name based, and several hundred spamtraps that
let me actively track where spammers are coming from. They tend to
bunch emails for the same host together, so by having spamtraps using
the same hostname, it's fairly easy to detect when it's spam because
they frequently multiple address it to one or more spamtraps at the
same time.

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org ) / Do not send to the address below |
| first name lower case at ipal.net / sp************* *********@ipal. net |
|------------------------------------/-------------------------------------|
May 30 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2288
by: Ian King | last post by:
Does anyone know of a way of doing this without uploading the image? Presumably it needs a rendering engine - is such a thing possible. Apologies if this has already been discussed - I was referred to this group from elsewhere, but a search for the topic has not unearthed anything. Cheers, Ian
6
2065
by: Sascha Kerschhofer | last post by:
Hi, I wonder if SVG can be scaled, when embedded in a HTML Dokument like an image with its width and height atributes.. Adobe SVG Viewer seems to crop my SVG image when using width and height. Is there any solution? Sascha Kerschhofer
16
6186
by: Donjuan | last post by:
Hi all I have trouble with tracking whether my image file is loaded. i use DHTML to change my image. HERE is the code: <img name="someimage" src="1.jpg" onclick="document.all.someimage.src='someimage.jpg"> but how can i determine whether "someimage.jpg" is loaded? and can i get the download percent of a file? Thanks in advance
2
1747
by: webonomic | last post by:
Converting data types I'm trying to do some image manipulation. This code project article (http://www.codeproject.com/csharp/imageresize.asp) has a great method I want to modefy. Here it is: static Image ScaleByPercent(Image imgPhoto, int Percent) { float nPercent = ((float)Percent/100);
2
6441
by: Martin Honnen | last post by:
I was playing around with canvas support in recent Safari, Mozilla and Opera (only version 9 preview) but run into issues with Safari related to the very old DOM Level 0 Image object for preloading images. When doing e.g. var img = new Image(); img.onload = function (evt) { alert(this); }; img.src = 'whatever.gif';
6
1817
by: webmaster | last post by:
Is there a way to have the image shrink when the viewer is using a sidebar? In other words, the page has three columns, two small columns on each side that are navigation and information , while the main body resides in the center column. Whenever a viewer is using a sidebar of any type the image remains the original size and a scroll bar appears in order to view the third, or rightmost column. I'd like to be able to view the entire page...
2
1032
by: jsqrd | last post by:
Does anyone now if the ubiquitous "scaleable naviagtion pane" as used on the MSDN Library site (http://.msd2.microsoft.com...) is a custom control? If not, where it can be found? Thanks, JJ
16
1807
by: amit | last post by:
Hello group, Few weeks ago, somebody suggested me to use Imagick for image manipulation/processing. I installed it and now want to start learning it so I did start with an example but what other steps should I take after installation? As you know better I need to instantiate an object from a class but there is no any include file to add the library to my project!
5
3441
by: Michael | last post by:
Hello all, how could I rotate a server side image in asp.net and show it in web page? Thanks.
0
7886
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2404
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.