Skip to content
#

resize-images

Here are 158 public repositories matching this topic...

sltsm
sltsm commented Dec 2, 2019

Hi,
I went through the documentation and couldn't find anything about using imgproxy with a SPA framework like vue. Are there any examples or guides on this?

If I understand correctly imgproxy is ment to be used serverside because of the encryption aspect. Would love to know about any best practices on how to implement it in a SPA scenario.

Thank you

rafaelsq
rafaelsq commented Jan 10, 2018
$ docker run --rm -p 9000:9000 h2non/imaginary -enable-url-source
$ curl http://localhost:9000/smartcrop?width=31&height=31&type=webp&url=https://camo.githubusercontent.com/bcb3b2bd343c3c85aaf6094e51c6178bbe239a32/687474703a2f2f7331342e706f7374696d672e6f72672f3874683731613230312f696d6167696e6172795f776f726c642e6a7067
{"message":"Error while processing the image: shrink: parameter vshrin
mikekov
mikekov commented Apr 19, 2020

Hello, I'm trying to create an image minify function and I ran across this issue where imageProcessor.PixelSource.Width does not report original image size anymore.

Background: I want to write a function that creates thumbnails but never enlarges images. Given an NxN box it needs to resize image to fit (preserving aspect ratio), but keep images smaller than NxN pixels intact (pass-thru).

One

Capu-zennio
Capu-zennio commented Jan 21, 2019

Ideally, components should be able to declare their own style with no need for it to exist in nuxt.config.js. For example:

<template>
  <div>
    <nuxt-img
      :src="testImage"
      :image-style="imageStyle"
      alt="Never forget alt tags!" />
  </div>
</template>

<script>
export default {
  data () {
    return {
      testImage: '/test.png',
      imageSty
austenc
austenc commented Mar 8, 2018

Hey @czim I'm interested in using this package instead of Stapler, but we already use Stapler (via laravel-stapler) in our project. I saw the list of differences in the readme, but was wondering if there was a more robust migration guide?

If not, is there anything else I should be aware of when attempting the transition? Is the rest of the API mostly the same as stapler's?

This looks far m

shady-ladow
shady-ladow commented Oct 3, 2019

Hello,

in your documentation, you wrote that, in resize() function we can omitted 'width'. However, if I omit width, there is an error =>

[DEBUG] Resizing image to target size: NaNx600 {"mode":"fit","gravity":"center","background":"","orig_width":564,"orig_height":423,"target_width":null,"target_height":600,"dest_width":null,"dest_height":null,"canvas_width":null,"canvas_height":null,"x":

Improve this page

Add a description, image, and links to the resize-images topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the resize-images topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.