Skip to content

fix width/height is scale NaN in img for export web page#713

Open
dwatow wants to merge 11 commits intoevolus:developmentfrom
dwatow:fix-scale-NaN-of-img-width/height
Open

fix width/height is scale NaN in img for export web page#713
dwatow wants to merge 11 commits intoevolus:developmentfrom
dwatow:fix-scale-NaN-of-img-width/height

Conversation

@dwatow
Copy link
Copy Markdown

@dwatow dwatow commented Apr 7, 2022

No description provided.

@dwatow dwatow closed this Apr 7, 2022
@dwatow dwatow reopened this Apr 7, 2022
@dwatow
Copy link
Copy Markdown
Author

dwatow commented Apr 7, 2022

issue description

  1. bitmapScale is undefined in xml file
        <Page xmlns:p="http://www.evolus.vn/Namespace/Pencil" id="b826fd07699d4543a02b200d8db96726" rasterized="/Users/chris/Desktop/pencil file/pages/detail.png">
            <Properties>
                <Property name="id">b826fd07699d4543a02b200d8db96726</Property>
                <Property name="fid">detail</Property>
                <Property name="name">detail</Property>
                <Property name="width">1382</Property>
                <Property name="height">671</Property>
                <Property name="pageFileName">page_b826fd07699d4543a02b200d8db96726.xml</Property>
                <Property name="zoom">1</Property>
                <Property name="backgroundColorRGBA">rgba(255, 255, 255, 0)</Property>
            </Properties>
            <Links>
                <Link target="02e736b4249f4f0b8f322fc9a45093e1" targetName="index" targetFid="index" x="151" y="338" w="92" h="25" />
            </Links>
        </Page>
  1. width/undefined, height/undefined in xsl file
                <img src="{@rasterized}"
                    width="{p:Properties/p:Property[@name='width']/text() * p:Properties/p:Property[@name='bitmapScale']/text()}"
                    height="{p:Properties/p:Property[@name='height']/text() * p:Properties/p:Property[@name='bitmapScale']/text()}"
                    usemap="#map_{p:Properties/p:Property[@name='fid']/text()}"/>

  1. img in export file
<img src="pages/index.png" width="NaN" height="NaN" usemap="#map_index">

@dwatow
Copy link
Copy Markdown
Author

dwatow commented Jun 14, 2023

@dgthanhan could you merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants