image opens upside-down!

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

image opens upside-down!

Postby brynn » Fri Sep 17, 2010 8:32 am

Hi Friends,
I know this sounds weird, and well, it is, lol!
I've been working on an image, like every day. It's very challenging and will be huge when finished, so it's growing every day. I say that because that's the only reason I can think of that might cause this. Although I really have no basis for that :roll: . I just know that there are several anomalies attributable to image size (kb, mb, not dimensions) (mostly performance issues).

Anyway, if I open it as the first image I open in Inkscape, it opens normally. But if I have another image already open in Inkscape, this one opens upside-down!
No big deal, I guess. But if it's a bug, I would want to report it.

Any thoughts?
Thanks :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: image opens upside-down!

Postby ~suv » Fri Sep 17, 2010 4:51 pm

brynn wrote:if I open it as the first image I open in Inkscape, it opens normally. But if I have another image already open in Inkscape, this one opens upside-down!
  • Do you open the second image from within Inkscape ('File > Open Recent…) or by launching a second instance of Inkscape (double-clicking the file in the Explorer)?
  • If you say 'image' - do you mean the complete SVG drawing is upside down, or a bitmap image you linked into the SVG file is rendered upside down, but the vector content is rendered correctly?
  • Does it only happen with this one file or with other files as well (Hint: maybe you can attach the SVG file?)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: image opens upside-down!

Postby brynn » Sun Sep 19, 2010 6:55 am

Yeah, I'm sorry. Right before I fell asleep that night I realized I should have included more details.

I open Inkscape by double-clicking on the desktop icon. Then I go to File menu > Open Recent.
Here, let me do some more testing, with different methods of opening, and I'll report the results.

The image does include a JPG, for reference. (Actually 2 of the same JPG.) But the whole entire thing is upside-down, both the JPG and the drawing I've done.
This is the only time this has happened to me, so yes, the only file that I know of. But I will also test some other files, and report back shortly.

Thanks ~suv

Edit Ok, here we go. It appears to be only this image, so therefore, probably something about this image that's causing this problem.
It happens that I only had one other SVG with a bitmap embedded, and it's a PNG. So I created a new SVG with a new (different) JPG embedded. But it appears to behave normally. Maybe the problem has to do with the particular JPG in the problematic image?

I've tested by opening images in every way that I know how:
  1. double-click the desktop icon and
    1. File menu > Open, or click the Open icon
    2. File menu > Open Recent
  2. Windows Explorer > double-click the file (I have set up so that SVG files open in Inkscape automatically)
  3. Windows Explorer > right-click > Open with
I don't know how to make a chart with this forum software, so I'll stick with the numbered lists.

Opening method 1.a.
If I open this image first, it opens normally. But if there is already another image open (regardless of method of opening), this image opens upside-down.

1.b. Same as 1.a.

2. Always opens upside-down, no matter how many other images I have opened in Inkscape, or if I have no other images open.

3. Same as 2.

Here's the SVG file:
bald eagle head.svg


Thanks again :D

Edit #2
If I have any images already open in Inkscape, then use the desktop icon to open another instance of Inkscape, then File menu > Open Recent, the file does open normally, and not upside-down. This will be a good "workaround" for me :D

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: image opens upside-down!

Postby ~suv » Sun Sep 19, 2010 7:21 pm

Thanks for further testing and providing more details! :)

I cannot reproduce this error (complete drawing upside-down) with the file you attached, testing in Inkscape 0.48 and Inkscape 0.48+devel r9768 on Mac OS X 10.5.8.

The bitmap file (JPG) is not embedded, but linked into the SVG file. Even after downloading the one you apparently used from the earlier eagle topic (renaming it to 'bald-eagle-close-up_12597_600x450.jpg' and updating the image links accordingly to load it from my local disk) - BTW, I could not find the exact image on the web site you linked to as source - even with the JPG file locally available, loaded and rendered by Inkscape, the content of the drawing was never displayed upside-down whatever way I opened it (from the file manager, from within Inkscape, from the 'Open recent' list, as second document in the same Inkscape instance, in separate Inkscape instances ...).

Nothing in the SVG file as far as I can tell would trigger this transformation (mirror about x-axis) - could this possibly be an issue limited to the windows port of Inkscape? Can other windows users test this, and - if reproduced - someone file a report about it (attaching both the SVG file and the linked JPG image)?

brynn - can you do two more tests?
  1. save a copy of the JPG file into a directory that doesn't contain spaces or punctuation characters in the file name nor in the full path name: more specifically avoid the ',' and '/' characters for the test (currently the image is loaded from 'C:\Users\[USERNAME]\Pictures/stocks, clipart, etc\bald-eagle-close-up_12597_600x450.jpg') and change the image links in the SVG file to load the new copy instead of the originally linked JPG image (select the image, choose 'Image properties' from the context menu and change the 'URL' field to match the new location)
  2. save a copy of the SVG file and embed each of the linked JPG files in that copy using 'Extensions > Images > Embed images…'
Does the same issue (content rendered upside-down) still occur with either variant?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: image opens upside-down!

Postby brynn » Sun Sep 19, 2010 9:20 pm

Yes, glad to test!
But first, some comments and questions.
The bitmap file (JPG) is not embedded, but linked into the SVG file.

No I clearly remember choosing 'embed' and NOT 'link' (using File menu > Import, then "jpeg GDK pixbuf Input" dialog). Did you see them both? I embedded the first. But may have copied the 2nd from the 1st. Don't know if that would cause it to show as linked? And can't remember for sure about the 2nd.

Even after downloading the one you apparently used from the earlier eagle topic (renaming it to 'bald-eagle-close-up_12597_600x450.jpg' and updating the image links accordingly to load it from my local disk) - BTW, I could not find the exact image on the web site you linked to as source - even with the JPG file locally available, loaded and rendered by Inkscape, the content of the drawing was never displayed upside-down whatever way I opened it (from the file manager, from within Inkscape, from the 'Open recent' list, as second document in the same Inkscape instance, in separate Inkscape instances ...).

Yes, same image and same JPG from that topic. Actually that's the original JPG file name, maybe why you could not find it. Oh, or am I misunderstanding that sentence? I'll look up the JPG again and provide the URL.

Regarding test a. -- do you want me to save a fresh copy from the website? Or just rename it without any punctuation, etc.? And
...change the image links in the SVG file to load the new copy instead of the originally linked JPG image (select the image, choose 'Image properties' from the context menu and change the 'URL' field to match the new location)

This is to be done to the JPG that's embedded/linked in my Inkscape image, right? Should I do it for both instances of the JPG in the image?

Regarding test b. -- understood :D
Back shortly with results.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: image opens upside-down!

Postby ~suv » Sun Sep 19, 2010 9:37 pm

brynn wrote:No I clearly remember choosing 'embed' and NOT 'link' (using File menu > Import, then "jpeg GDK pixbuf Input" dialog). Did you see them both?
None of the two images is embedded. (I downloaded the SVG a second time to verify my first findings). You can verify yourself: the status line message of each selected image tells you whether it is embedded or linked.

brynn wrote:But may have copied the 2nd from the 1st. Don't know if that would cause it to show as linked?
No, it stays the same as the original (either embedded, or linked), just tested (both with 'Duplicate' or 'Copy, Paste').

brynn wrote:Regarding test a. -- do you want me to save a fresh copy from the website? Or just rename it without any punctuation, etc.?
Just put a local copy of the JPG image (using the Explorer) into a directory with a "normal" short name (no commas, slashes or dots etc. in the name of the directory). Keep the file name of the copied JGP image the same (unchanged).

brynn wrote: And
~suv wrote:...change the image links in the SVG file to load the new copy instead of the originally linked JPG image (select the image, choose 'Image properties' from the context menu and change the 'URL' field to match the new location)
This is to be done to the JPG that's embedded/linked in my Inkscape image, right? Should I do it for both instances of the JPG in the image?
Yes, change it inside Inkscape, for both linked JPG images (in the SVG file you had attached earlier, none of the JPG images is embedded).

[Edit]
Note: I do not know if the directory name you chose originally ("Pictures/stocks, clipart, etc") is in any way related to the upside-down issue: the two tests at least would exclude it as factor.
[/Edit]

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: image opens upside-down!

Postby brynn » Sun Sep 19, 2010 11:28 pm

Wow, that was a fast reply :mrgreen:

Ok, regarding the info in the status area, it reads:
"Image 600 x 450: file:///C:/Users.....450.jpg in layer ref photo. Click selection to toggle scale/rotation handles."
It doesn't say "linked". But when I started with a fresh blank doc, and chose Embed, the status areas did say "embedded". The problem for me is that I am absolutely sure I chose Embed, in the first place :shock: But that can be on the back-burner, as they say, for now.

Also, my bad on the image source. It actually came from National Geographic:
http://animals.nationalgeographic.com/a ... 00x450.jpg
Sorry about that :oops:

As for the last 2 tests, a. and b., there was no change in the test results. I actually made 2 copies of my original "working" file, just to be safe. In both cases, they opened just as I reported above -- no differences, no resolution.

BUT! The new file I made in order to see "embedded" in the status area, that one does open normally, even if others are already open in Inkscape. AND! Then I made another new one and used the Link import. It opens normally too, in all methods of opening.

So it must be something JUST with this file, as least that's how it appears at the moment. I'm not sure if I've done any of the transformations that are responsible for objects being displaced, a bug I've run into in the past. But perhaps that's the culprit? In the past, I've experienced displacement of objects after using Fit Page to Selection, but I definitely have not used that in this image. Let's see, I've done some simple rotation and scaling....and flip horiz and vert....that's about it, afair. Unfortunately, I don't know what to look for in the XML Editor.

Well, hopefully another Windows user will be able to test this file.
Thanks again ~suv :D

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: image opens upside-down!

Postby druban » Mon Sep 20, 2010 7:23 pm

You might want to check the exif metadata - using gimp - to see if you have set it to rotate twice without meaning to. You can do this from the windows file menu. anyway it changes exif without affecting display in some programs while rotating it in others that "use exif for display" as well as the thumbnails (but if you use list or detail views you would not notice it). The original file on the internet naturally would not show it since its exif data is unchanged.
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: image opens upside-down!

Postby brynn » Tue Sep 21, 2010 5:49 pm

You might want to check the exif metadata - using gimp - to see if you have set it to rotate twice without meaning to. You can do this from the windows file menu.

Ok, I have GIMP open, and I have the image open in GIMP. But there's nothing in the File menu about "exif" or "metadata". I've looked at image Properties in Windows Explorer and GIMP, still nothing. Can you give me more details about where to find this info? Also, if it rotated twice, wouldn't that look like it had never rotated at all?


Return to “Discuss Software Issues”