page size = 1px by 1px for bitmap imports (rev 12568)

Bug #1228693 reported by Alvin Penner on 2013-09-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Matthew Petroff

Bug Description

this is similar to Bug 1228660, but for different file types.
running rev 12568, importing either .png or .jpg or .gif, the typical svg header looks like this:

   width="100%"
   height="100%"
   viewBox="0 0 625 625"

where the viewbox is the size of the image (likely rescaled on import). The viewbox size agrees with the image size in the file contents, but the page size is always 1px by 1px, not related to the image size. Resulting scaling is usually zoomed in to a very high degree, typically 25600%

su_v (suv-lp) on 2013-09-21
tags: added: bitmap importing regression viewbox
su_v (suv-lp) wrote :

Reproduced with r12569 on OS X 10.7.5 (same backtrace).

Testing with archived builds:
- ok with rev <= 12556
- incorrect page size with rev >= 12557

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.49
status: New → Triaged
Alvin Penner (apenner) wrote :

forgot to specify, this happens only on a File->Open, not Import.

On a File->Import the page size keeps its original value and there is no problem. The svg header contains the following entries, which look reasonable:

   width="744.09448"
   height="1052.3622"
   viewBox="0 0 744.09448 1052.3622"

su_v (suv-lp) wrote :

Correction (copy&paste error):
- Reproduced with r12569 on OS X 10.7.5 (same backtrace).
+ Reproduced with r12569 on OS X 10.7.5

Fixed in r12575.

Changed in inkscape:
assignee: nobody → Matthew Petroff (matthewpetroff)
status: Triaged → Fix Released
su_v (suv-lp) on 2013-09-22
Changed in inkscape:
milestone: 0.49 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers