# PlotlyJS : File save error（.eps）

**URL:** https://discourse.julialang.org/t/plotlyjs-file-save-error-eps/25075
**Category:** General Usage
**Created:** [June 8, 2019, 2:28pm UTC](https://discourse.julialang.org/t/plotlyjs-file-save-error-eps/25075 "2019-06-08T14:28:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![FujiwaraTakumiEH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fujiwaratakumieh/32/37975_2.png) [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)
#### Post date: [June 8, 2019, 2:28pm UTC](https://discourse.julialang.org/t/plotlyjs-file-save-error-eps/25075/1 "2019-06-08T14:28:15Z")

</div>

I am getting an error when I try to save the generated image to `.eps` format,code show as below:

```julia
using PlotlyJS
using ORCA

function Draw()
	X=[0, 1, 2, 0]
	Y=[0, 0, 1, 0]
	Z=[0, 2, 0, 0]
    trace1 = scatter3d(;x=X,y=Y,z=Z,mode="lines",showlegend=false,line=attr(color="#1f77b4", width=1))
	I=[1, 3, 2, 1]
	J=[4, 1, 5, 4]
	K=[3, 2, 0, 3]
	trace2 = scatter3d(;x=I,y=J,z=K,mode="lines",showlegend=false,line=attr(color="#1f77b4", width=1))
	data = [trace1,trace2]
    layout = Layout(title="Beam",
		    autosize="false",
		    width=1280,
		    height=720,
		    margin=attr(l=0,r=0,b=50,t=50),
                    scene=attr(aspectmode="manual",
                               aspectratio=attr(x=1,y=0.3,z=0.3),
                               xaxis=attr(title="X",range=[0,3],showgrid=false,zeroline=false,showline=false,showticklabels=false),
                               yaxis=attr(title="Y",range=[0,5],showgrid=false,zeroline=false,showline=false,showticklabels=false),
                               zaxis=attr(title="Z",range=[0,3],showgrid=false,zeroline=false,showline=false,showticklabels=false))
                    )

    p = plot(data,layout)
    savefig(p,"1.eps")
end

Draw()

```

The error content is:

```julia
LoadError: image conversion error
in expression starting at F:\1\test.jl:30
error(::String) at error.jl:33
#savefig#1(::SubString{String}, ::Nothing, ::Nothing, ::Nothing, ::Function, ::IOStream, ::Plot{GenericTrace{Dict{Symbol,Any}}}) at ORCA.jl:45
(::getfield(PlotlyBase, Symbol("#kw##savefig")))(::NamedTuple{(:format, :scale, :width, :height),Tuple{SubString{String},Nothing,Nothing,Nothing}}, ::typeof(savefig), ::IOStream, ::Plot{GenericTrace{Dict{Symbol,Any}}}) at none:0
(::getfield(ORCA, Symbol("##3#4")){Nothing,Nothing,Nothing,Plot{GenericTrace{Dict{Symbol,Any}}}})(::IOStream) at ORCA.jl:71
#open#310(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(ORCA, Symbol("##3#4")){Nothing,Nothing,Nothing,Plot{GenericTrace{Dict{Symbol,Any}}}}, ::String, ::Vararg{String,N} where N) at iostream.jl:375
open at iostream.jl:373 [inlined]
#savefig#2 at ORCA.jl:70 [inlined]
savefig(::Plot{GenericTrace{Dict{Symbol,Any}}}, ::String) at ORCA.jl:65
#savefig#50(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::PlotlyJS.SyncPlot, ::String) at savefig_orca.jl:1
savefig at savefig_orca.jl:1 [inlined]
Draw() at test.jl:27
top-level scope at none:0

```

But it can be successfully saved into `.png` or `.pdf` by the same way:

```julia
savefig(p, "1.png")
or
savefig(p, "1.pdf")

```

* * *

```julia
Julia Version 1.1.1
Commit 55e36cc308 (2019-05-16 04:10 UTC)Platform Info: OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, ivybridge)
Environment: JULIA_EDITOR = "C:\Users\huoze\AppData\Local\atom\app-1.38.0-beta0\atom.exe" -a
  JULIA_NUM_THREADS = 2

```

```julia
    Status `C:\Users\huoze\.julia\environments\v1.1\Project.toml`
  [c52e3926] Atom v0.8.7  
  [6e4b80f9] BenchmarkTools v0.4.2  
  [ad839575] Blink v0.10.1
  [336ed68f] CSV v0.5.5
  [a93c6f00] DataFrames v0.18.3
  [7073ff75] IJulia v1.18.1  
  [e5e0dc1b] Juno v0.7.0
  [47be7bcc] ORCA v0.2.1  
  [f0f68f2c] PlotlyJS v0.12.4
  [438e738f] PyCall v1.91.2

```

May I ask how this situation should be solved?
