Giter Site home page Giter Site logo

image-tools's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

image-tools's Issues

[Bug] Always fails copying images.

Describe the bug
A clear and concise description of what the bug is.
When i try to click copy image, it always says is not from discord and it fails to copy it...

To Reproduce
Steps to reproduce the behavior:
Just copy the image
Expected behavior
A clear and concise description of what you expected to happen.
copied image...
Add any other context about the problem here.

[Bug] Elements types causing crashes

some element types are null and causing discord to crash.
looks like it's an update from discord or smth.

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: null.

it can work if enforced like this:
image
but I don't think this is the right way tho.

context menu issue

started happening recently after a discord update which broke other plugins too
image

Ability to hide default save directory in context menu

Hey there,

I think it'd be a cool idea to allow the user to hide the default save directory in context menus via a plugin setting, as it makes for quite a large menu. Currently I'm working around this with CSS, but it'd be great to see a proper setting for it.

Example:

/* Workaround */
#image-context-item-0-1-5 >div>div,
[id*="image-tools-button"][id$="-5"] >div>div {
  display: none;
}

Thanks,
Pointy

[CHAT] Untrused?

I Just read this In the Powercord discord and am wondering why are you untrusted?

PSA: Uninstall plugins by "Xinos"
After a regrettable lack of collaboration from this user regarding guidelines compliance despite our attempt at reaching out, as well as a very questionable and unhelpful behavior in the server, we unpublished all plugins from this developer and consider them untrusted (making their plugins "unsafe" to our eyes). We strongly recommend uninstalling plugins from them (or to be very cautious with future updates), for your safety. Posting or encouraging installing plugins from them will fall under rule 9.

This is not the first time we take such actions. Last time such actions were taken it was against Hellbound, and in case you don't know what happened following our actions, you can visit postmortem.

Look for your plugins folder and delete the following plugins: fix-unread-channels, hot-remount, chat-settings, my-palette, image-tools

Make zoom more smooth and expandable.

In SaveToRedux, the BetterDiscord version of this plugin, it allows zooming from x1 through x1.2, x1.8, etc. up to about x40, this plugin only allows integers for zoom and only up to x20!

You should add precision up to 0.1 and zoom up to x40 (maybe more, on big images). And maybe a slider to set the zoom speed?

[bug] TypeErrors when right clicking webhook-like users

Hey there,

Ran into some errors when right-clicking webhook-like users, including:

  • Actual webhooks
  • Discord system accounts (841847259930296330 & 669627189624307712)
  • Clyde/Powercord local messages

Usually something along the lines of (also happens with DM interactions too):

[Powercord:Injector] Failed to run injection "image-tools-guild-channel-user-context-menu" TypeError: Cannot read property 'props' of null
    at userCM (VM1151 C:\Tools\Essentials\Powercord\src\Powercord\plugins\image-tools\patches.js:113)
    at VM1138 C:\Tools\Essentials\Powercord\src\Powercord\plugins\image-tools\index.js:72

Thanks,
pointy

Problems with the lens, and thank you! <3 [Bug]

Describe the bug
Hi! First, I want to say that this is a fantastic plugin and I got used to it so much that I can't use Dc without it now. Also, I would like to report one bug that when zooming on static/animated images(emotes), you can still see the unzoomed part

To Reproduce
Right click on any image/gif/emote.. > Image > Open Image

Expected behavior
You should only see the zoomed part of the image with the lens.

GwZnEbtaDE

[Feature Request] Support stickers

Describe the feature request
Have Image Tools drop down menu on stickers.

Expected behavior
Be able to save, download and if possible copy & copy link of stickers.

[Bug] Can't press the "Show original" button

Describe the bug
I can't press the "Show original" button on bottom-left of the image.
The lens tho works perfectly fine outside of the image

To Reproduce

  • Open any image
  • Try to press the above mentioned button
  • Cry about it

Expected behavior
The link opens up

[Feature Request] Zoom Color Peek

Upon zooming, wherever your cursor is the color under it should be displayed somewhere on the UI, and there should be a hotkey to copy it to your clipboard (as well as a note of the hotkey next to the color)

[Bug] Color picker doesn't work with gifs

Describe the bug
Color picker always selects #000000 as the color on gifs, other formats work fine (at least png)

To Reproduce

  • Find a GIF
  • Press the picker button
  • Try to pick a color

Expected behavior
Turn your mind on

Plugin not loading on Powercord Startup

[Powercord:Plugin] An error occurred while initializing "image-tools"! Error: ENOENT: no such file or directory, open 'C:\Users\kalsa\powercord\src\Powercord\plugins\image-tools\components\Button.js'
    at Object.openSync (fs.js:440)
    at Object.func [as openSync] (electron/js2c/asar.js:140)
    at Object.readFileSync (fs.js:342)
    at Object.fs.readFileSync (electron/js2c/asar.js:542)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1003)
    at Module.load (internal/modules/cjs/loader.js:815)
    at Module._load (internal/modules/cjs/loader.js:727)
    at Function.Module._load (electron/js2c/asar.js:769)
    at Module.require (internal/modules/cjs/loader.js:852)
    at require (internal/modules/cjs/helpers.js:74)

Debug information on my client:

# Debugging Information | Result created: Fri, 26 Mar 2021 13:38:35 GMT

[SYSTEM / DISCORD]
Locale="en-GB"
OS="Windows 10 64-bit"
Architecture="x64"
ReleaseChannel="canary"
AppVersion="1.0.28"
BuildNumber="80606"
BuildID="f5bbeae"
Experiments="0/69"

[PROCESS VERSIONS]
React="16.12.0"
Electron="9.3.5"
Chrome="83.0.4103.122"
Node="12.14.1"

[POWERCORD]
Commands="28"
Settings="10"
Plugins="32/33"
Themes="1/2"
Labs="0/5"
SettingsSync="false"
CachedFiles="247"
Account="true"
APIs="9"

[GIT]
Upstream="Official"
Revision="[83f0aa3]"
Branch="v2"
Latest="true"

[LISTINGS]
PowercordPath="C:\Users\k****\powercord"
DiscordPath="C:\Users\k****\AppData\Local\DiscordCanary\app-1.0.28"
Experiments=""
Labs=""
Plugins="audioviz, better-status-indicators, channel-typing, DM-Typing-Indicator, game-activity-toggle, PowerCord-Popout-Fix, remove-invite-from-user-context-menu, rolecolor-everywhere, Send-Message-with-Webhook, show-all-activities, smart-typers, theme-toggler, Wolfram"

[Bug] No zoomed in image

Describe the bug
Lens only blurs the background and show the lens border, but not the actual zoomed in picture.

To Reproduce
Leftclick on a picture popout

Expected behavior
A zoomed in version of the picture appears within the lens.

Add any other context about the problem here.
Whenever i open an image popout, i get a CORS error:

Access to fetch at 'https://media.discordapp.net/attachments/XXXXXX/XXXXX/unknown.png?width=1172&height=201' from origin 'https://canary.discord.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

[Feature Request] Bigger server banner size

Describe the feature request
Get a bigger server banner image size for better quality.

Expected behavior
Getting a better quality image for a better life.

This probably needs a special function because from what I've seen here,
this plugin gets the image source from the element itself and the default banner size is 512.

It's not necessary feature but it would give a good experience.

[Bug] image is bigger than canvas

Describe the bug
opening an image using context menu makes it bigger than canvas whether you checked bigger images or not in settings.

To Reproduce

  • Right click an image
  • click the "Image" main button or "Open Image" button
  • voilà

Expected behavior
Well, it should be fit-to-canvas instead of opening the original size.

--
Long Live Image Tools :3

[Feature Request] Have a save button in the drop down menu for videos

Describe the feature request
Have the same save options as images but for videos, like on ImageUtilities on BetterDiscord.

Expected behavior
Have a "Video" button like the "Image" button when right clicking on videos, containing options such as "Save video", and "Save video As...". Save thing goes for videos embeded via links.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.