Skip to content

不同图片,生成水印大小不同? #225

@qq382724935

Description

@qq382724935

Describe the bug
A clear and concise description of what the bug is.
不同图片,生成水印大小不同?
To Reproduce
Steps to reproduce the behavior:
const url1 = 'https://img2.baidu.com/it/u=1195773901,4039087122&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750';
const url2 = 'https://img0.baidu.com/it/u=3991991311,1584619367&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=735';
const url3 = 'https://img2.baidu.com/it/u=713662616,1260796043&fm=253&fmt=auto&app=120&f=JPEG?w=1026&h=684';

  1. Marker.markText({
    backgroundImage: {
    src: 'https://img0.baidu.com/it/u=3773090653,2338589126&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500',
    scale: 1,
    },
    watermarkTexts: texts.map((item) => {
    return {
    text: '让天下没有难做的生意',
    positionOptions: { position: Position.center },
    style: {
    color: item?.style?.color || '#fff',
    fontSize: 36
    },
    };
    }),
    })

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Devlopment environment(please complete the following information):

  • OS: [e.g. mac os]
  • nodejs: [e.g. 18.8.0]
  • react-native: [e.g. 0.71.14]
  • react-native-image-marker : [e.g. 1.2.6]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone XS]
  • OS: [e.g. iOS14.6]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions