Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 11 commits into
base: development
Choose a base branch
from

Conversation

dwatow
Copy link

@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
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
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