svg画像の疑問

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
5 months 1 week ago #356732

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.4.0
-- PHP version -- : 8.2.5

毎回、丁寧な回答ありがとうございます。
今回は疑問というか、私が一週間位調べて導き出した答えが正しいのか?確認したく質問いたします。

商品カテゴリにsvg画像を追加して保存すると、以下の表示文がでます。

The GD library for thumbnails creation is installed and activated on your website. However, it is not configured to support "svg" images. Please make sure that you're using a valid image extension and contact your hosting company or system administrator in order to make sure that the GD library on your web server supports the image extension: svg


svg画像は問題なく表示されるのに、この表示文が出るのが不思議で、はじめはメディアのオプション設定と思い、svg関連追加するも消えず、GD libraryを調べるも問題はないようです。色々、検索して調べましたが、解決の糸口は見つかりません。

なお上記の表示文はHikaShop内で設定したsvg画像に表示され、svg画像を削除すると上記の表示文も消えます。だから単にsvg画像が

images/com_hikashop/upload/thumbnails

でサムネイル化できないことを表示しているだけではないかと思いました。
理由としてサムネイル化しなくても、svg画像はサイズを拡大縮小できるからです。

この考えが正しいなら腑に落ちますが、間違えている場合は今後に影響すると思い質問しました。
お手数おかけしますが、よろしくお願いします。

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 months 1 week ago #356749

Hi,

It should work fine. I've tried on my end to upload a SVG file and didn't get any error message:
i.imgur.com/rK55WOz.png

I used this image for my test: www1.plurib.us/1shot/2009/fuji/fuji1.svg
Are you able to reproduce the issue with this image ?

We might need a backend access and a FTP access on your website if you're not able to reproduce the issue.

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
5 months 1 week ago #356790

こんにちわ。

指定された画像でテストして、画像は問題なく表示されます。
表示文も表示され、結果は同じでした。

しかしこの画像を確認する際に、Inkscapeで気になることを発見しました。
この画像は古いバージョンのInkscape(90 DPI)であり、新しいバージョンのInkscapeは(96 DPI)で互換させる必要があるとのこと。またブラウザーの互換性向上を図るため、96 DPIのCSS標準に準拠してInkscapeさせたとあります。

もしかしてこの辺が関係している様にも思われますが、わたしのスキルでは、今回の原因は全く分かりません。
いづれにせよ、表示文も表示されるがsvg画像は問題なく使えることは確かです。

Last edit: 5 months 1 week ago by Alouette00.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 months 1 week ago #356805

Hi,

Since I'm not able to reproduce the problem with that same SVG image and you still get the error with it on your website, I have to look at the situation directly on the website.
Can you provide a backend access and a FTP access via our contact form please ?
www.hikashop.com/support/contact-us.html

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
5 months 6 days ago #356832

お問い合わせフォームにバックエンドアクセスとFTPアクセスを提供しましたので確認して下さい。

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 months 6 days ago #356835

Hi,

We didn't receive your message. Could you please try again.

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
5 months 6 days ago #356836

多分、今度は大丈夫でしょう!

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 months 5 days ago #356852

Hi,

Thanks for the accesses.
I found the issue. The difference between my setup and yours is that you have the "Generate WebP images" activated. This leads to HikaShop trying to generate a webp image from the svg file, which is not possible and thus it displays this message.
I've made a patch so that it properly skips the webp image generation for svg files.
I've implemented the patch on your website and validated the change.
We'll be including the patch for the next version of HikaShop.

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
5 months 5 days ago #356862

こんにちわ。
言われてみれば、確かにwebpに変更してからでした。
これでスッキリしました。
nicolasさんにはご迷惑おかけしましたが、今回の疑問の影響でわたし自身もスキルアップできたので結果的には良かったです。ありがとうございます。

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum