Skip to content

Commit

Permalink
update: compression.quality default to 75
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Oct 29, 2024
1 parent 08ccad5 commit 4e11d0b
Show file tree
Hide file tree
Showing 10 changed files with 4,081 additions and 2,619 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"image-manager.appearance.primaryColor": "#4d78cc",
"image-manager.appearance.theme": "dark",
"image-manager.viewer.imageBackgroundColor": "#404754",
"image-manager.viewer.imageWidth": 161,
"image-manager.viewer.imageWidth": 160,
"search.exclude": {
"**/__snapshots__/**": true,
"CHANGELOG-CODE.md": true,
Expand Down
4 changes: 2 additions & 2 deletions lib/install/unpack-libvips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// Adopt from sharp/install/libvips.js (Apache-2.0)

import libvips from '@minko-fe/sharp/lib/libvips'
import sharpPkg from '@minko-fe/sharp/package.json' assert { type: 'json' }
import fs from 'node:fs'
import path from 'node:path'
import stream from 'node:stream'
import zlib from 'node:zlib'
import tarFs from 'tar-fs'
import { SHARP_LIBVIPS_VERSION } from '~/meta'
import { platform } from './platform'

const hasSharpPrebuild = [
Expand Down Expand Up @@ -35,7 +35,7 @@ const fail = function (err) {
}

const unpackLibvips = function (tarPath: string) {
const versionedVendorPath = path.join(__dirname, '..', 'vendor', SHARP_LIBVIPS_VERSION, platformAndArch)
const versionedVendorPath = path.join(__dirname, '..', 'vendor', sharpPkg.config.libvips, platformAndArch)
libvips.mkdirSync(versionedVendorPath)

const ignoreVendorInclude = hasSharpPrebuild.includes(platformAndArch)
Expand Down
Loading

0 comments on commit 4e11d0b

Please sign in to comment.